Skip to content

Commit

Permalink
feat: Make sure that dev server is running using the expected runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Oct 18, 2023
1 parent 3e74597 commit 6ce06c2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
10 changes: 10 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,10 @@
{
"sdk": {
"version": "7.0.100",
"allowPrerelease": false,
"rollForward": "latestFeature"
},
"tools": {
"dotnet": "7.0.100"
}
}
10 changes: 10 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,10 @@
{
"sdk": {
"version": "8.0.100-preview.7.23376.3",
"allowPrerelease": false,
"rollForward": "latestFeature"
},
"tools": {
"dotnet": "8.0.100-preview.7.23376.3"
}
}
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 @@ -35,6 +35,20 @@
</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>
<_OverridePackageId>Uno.UI</_OverridePackageId>
Expand Down

0 comments on commit 6ce06c2

Please sign in to comment.