Skip to content

Commit

Permalink
Use exact runtime for non-servicing builds of Blazor DevServer (#56278)
Browse files Browse the repository at this point in the history
  • Loading branch information
halter73 authored Jun 18, 2024
1 parent c60c987 commit cad47d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 36,11 @@

<Target Name="_CreateRuntimeConfig" BeforeTargets="CoreBuild">
<PropertyGroup>
<_RuntimeConfigProperties>
AspNetCoreMajorMinorVersion=$(AspNetCoreMajorMinorVersion);
<_RuntimeConfigProperties Condition="'$(IsServicingBuild)' == 'true'">
FrameworkVersion=$(AspNetCoreMajorMinorVersion).0;
</_RuntimeConfigProperties>
<_RuntimeConfigProperties Condition="'$(IsServicingBuild)' != 'true'">
FrameworkVersion=$(SharedFxVersion);
</_RuntimeConfigProperties>

<_RuntimeConfigPath>$(OutputPath)blazor-devserver.runtimeconfig.json</_RuntimeConfigPath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
"tfm": "net9.0",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "${AspNetCoreMajorMinorVersion}.0"
"version": "${FrameworkVersion}"
},
"rollForwardOnNoCandidateFx": 2
}
Expand Down

0 comments on commit cad47d2

Please sign in to comment.