Skip to content

Commit d34fefb

Browse files
authored
UseBlazorFramworkFiles: add webcil mime type mapping (#46244)
WebCIL is a new container format for .NET assemblies when publishing to webassembly. (See dotnet/runtime#79416) Related to dotnet/runtime#80807
1 parent 8459947 commit d34fefb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Components/WebAssembly/Server/src/ComponentsWebAssemblyApplicationBuilderExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ private static StaticFileOptions CreateStaticFilesOptions(IFileProvider webRootF
8686
options.FileProvider = webRootFileProvider;
8787
var contentTypeProvider = new FileExtensionContentTypeProvider();
8888
AddMapping(contentTypeProvider, ".dll", MediaTypeNames.Application.Octet);
89+
AddMapping(contentTypeProvider, ".webcil", MediaTypeNames.Application.Octet);
8990
// We unconditionally map pdbs as there will be no pdbs in the output folder for
9091
// release builds unless BlazorEnableDebugging is explicitly set to true.
9192
AddMapping(contentTypeProvider, ".pdb", MediaTypeNames.Application.Octet);

0 commit comments

Comments
 (0)