Skip to content

Commit

Permalink
UseBlazorFramworkFiles: add webcil mime type mapping
Browse files Browse the repository at this point in the history
WebCIL is a new container format for .NET assemblies when publishing to webassembly.  (See dotnet/runtime#79416)

Related to dotnet/runtime#80807
  • Loading branch information
lambdageek committed Jan 24, 2023
1 parent 166593f commit aa4b2f0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ private static StaticFileOptions CreateStaticFilesOptions(IFileProvider webRootF
options.FileProvider = webRootFileProvider;
var contentTypeProvider = new FileExtensionContentTypeProvider();
AddMapping(contentTypeProvider, ".dll", MediaTypeNames.Application.Octet);
AddMapping(contentTypeProvider, ".webcil", MediaTypeNames.Application.Octet);
// We unconditionally map pdbs as there will be no pdbs in the output folder for
// release builds unless BlazorEnableDebugging is explicitly set to true.
AddMapping(contentTypeProvider, ".pdb", MediaTypeNames.Application.Octet);
Expand Down

0 comments on commit aa4b2f0

Please sign in to comment.