Skip to content

Commit

Permalink
fix(hr): Use SDK version to run the dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Oct 30, 2023
1 parent 2997c3b commit e4326f1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
<_IsRCClientRemote Condition="'$(PkgUno_Wasm_Bootstrap_DevServer)'!=''">true</_IsRCClientRemote>

<_UnoRCHostVersionPath>net7.0</_UnoRCHostVersionPath>
<_UnoRCHostVersionPath Condition="'$([MSBuild]::GetTargetFrameworkVersion($(TargetFramework)))' &gt; 7">net8.0</_UnoRCHostVersionPath>

<!-- Use the SDK version used to build the app, not the target framework (e.g. a net7.0 app may be built with a net8 SDK)-->
<_UnoRCHostVersionPath Condition="'$(BundledNETCoreAppTargetFrameworkVersion)' &gt; 7">net8.0</_UnoRCHostVersionPath>
</PropertyGroup>

<Message Text="&lt;RemoteControlHostPath&gt;$(MSBuildThisFileDirectory)../tools/rc/host/$(_UnoRCHostVersionPath)/Uno.UI.RemoteControl.Host.dll&lt;/RemoteControlHostPath&gt;" Importance="High" />
Expand Down

0 comments on commit e4326f1

Please sign in to comment.