79482247

Date: 2025-03-03 22:09:49
Score: 1
Natty:
Report link

It was answered in this thread: https://github.com/dotnet/aspnetcore/issues/60680

Key is to add explicit statements in .csproj:

<PropertyGroup>
    ...
    <StaticWebAssetBasePath>_content/RazorClassLibrary1</StaticWebAssetBasePath>
    ...
</PropertyGroup>

<ItemGroup>
    <None Include="wwwroot\**\*" Pack="true" PackagePath="contentFiles/any/net9.0/wwwroot/" />
</ItemGroup>
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Roland Buergi