Skip to content

Commit

Permalink
fix: Force the dotnet version to use by teh dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Nov 7, 2023
1 parent 6a732c5 commit 4f73003
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Uno.UI.RemoteControl.Host/Config/global-net7.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"sdk": {
"version": "7.0.302",
"allowPrerelease": false,
"rollForward": "latestFeature"
},
"tools": {
"dotnet": "7.0.302"
},
"msbuild-sdks": {
"MSBuild.Sdk.Extras": "3.0.44"
}
}
13 changes: 13 additions & 0 deletions src/Uno.UI.RemoteControl.Host/Config/global-net8.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"sdk": {
"version": "8.0.100-preview.7.23376.3",
"allowPrerelease": true,
"rollForward": "latestPatch"
},
"tools": {
"dotnet": "8.0.100-preview.7.23376.3"
},
"msbuild-sdks": {
"MSBuild.Sdk.Extras": "3.0.44"
}
}
14 changes: 14 additions & 0 deletions src/Uno.UI.RemoteControl.Host/Uno.UI.RemoteControl.Host.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@
<UndefineProperties>TargetFramework</UndefineProperties>
</ProjectReference>
</ItemGroup>

<ItemGroup>
<Content Update="Config\*.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
<Content Update="Config\global-net7.0.json" Condition="'$(TargetFramework)' == 'net7.0'">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<TargetPath>global.json</TargetPath>
</Content>
<Content Update="Config\global-net8.0.json" Condition="'$(TargetFramework)' == 'net8.0'">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<TargetPath>global.json</TargetPath>
</Content>
</ItemGroup>

<Target Name="_UnoToolkitOverrideNuget" AfterTargets="AfterBuild" DependsOnTargets="BuiltProjectOutputGroup" Condition="'$(UnoNugetOverrideVersion)'!=''">
<PropertyGroup>
Expand Down

0 comments on commit 4f73003

Please sign in to comment.