Skip to content

Commit 90a4707

Browse files
authored
Ensure DevServer has the AspNetCore.App runtime in runtimeconfig.json (#23814)
1 parent 7412976 commit 90a4707

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Components/WebAssembly/DevServer/src/Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,19 @@
3838
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" />
3939
</ItemGroup>
4040

41+
<Target Name="_FixupRuntimeConfig" BeforeTargets="_GenerateRuntimeConfigurationFilesInputCache">
42+
<ItemGroup>
43+
<_RuntimeFramework Include="@(RuntimeFramework)" />
44+
<RuntimeFramework Remove="@(RuntimeFramework)" />
45+
<RuntimeFramework Include="Microsoft.AspNetCore.App" FrameworkName="Microsoft.AspNetCore.App" Version="5.0.0-preview" />
46+
</ItemGroup>
47+
</Target>
48+
49+
<Target Name="_UndoRuntimeConfigWorkarounds" AfterTargets="GenerateBuildRuntimeConfigurationFiles">
50+
<ItemGroup>
51+
<RuntimeFramework Remove="@(RuntimeFramework)" />
52+
<RuntimeFramework Include="@(_RuntimeFramework)" />
53+
</ItemGroup>
54+
</Target>
55+
4156
</Project>

0 commit comments

Comments
 (0)