dotnet / dotnet/aspnetcore

Remove copied static files code from WebView project

Open
#31,078 3 comments 0 reactions 0 assignees View on GitHub
area-blazor clean-up feature-blazor-desktop Pillar: Technical Debt Priority:3
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

As a workaround for another problem we introduced a lot of copied code into the Blazor Desktop WebView package: https://github.com/dotnet/aspnetcore/pull/31071

There's a fair bit of copied code related to static files and content types. The Blazor Desktop packages can't depend on anything in Microsoft.AspNetCore.App because they have to run in places where ASP.NET Core doesn't run, such as Android and iOS.

Options:
0. Do nothing and keep the copied code (possibly trimming it down to the minimal amount needed, rather than taking entire files)
1. Move the code to a NuGet package that can be used from everywhere
2. Something else?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.