Skip to content

Commit

Permalink
fix: Adjust server project cross-targeted build
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored Mar 21, 2024
1 parent 33d9c87 commit 9d43812
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Uno.Sdk/targets/Uno.Common.WinAppSdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
<Import Project="Uno.SingleProject.WinAppSdk.targets"
Condition=" $(SingleProject) == 'true' " />

<Import Project="uUno.SingleProject.WinAppSdk.VS.targets"
Condition=" $(BuildingInsideVisualStudio) == 'true' " />

<Target Name="_UnoValidateWinAppSDK3548"
BeforeTargets="BeforeBuild"
Condition="
Expand Down
24 changes: 24 additions & 0 deletions src/Uno.Sdk/targets/Uno.SingleProject.WinAppSdk.VS.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project>

<Target Name="_UnoFilterTargetFrameworkWithDebuggerTarget"
BeforeTargets="_SetBuildInnerTarget;_ComputeTargetFrameworkItems"
Condition="
'$(BuildingInsideVisualStudio)'=='true'
AND '$(UnoDisableVSFilterTargetFrameworkWithDebuggerTarget)' != 'true'
AND $(_IsExecutable)">

<!--
This target is used to restrict the number of active target frameworks used when
building a head project. This current version uses $(_IsExecutable) in order to
allow for faster builds with the uno.templates `Server` project.
This will be enhanced in the future to support class libraries as well.
-->

<PropertyGroup Condition=" '$(TargetFramework)'=='' AND '$(_SelectedTargetFramework)' != '' ">
<TargetFramework>$(_SelectedTargetFramework)</TargetFramework>
<TargetFrameworks>$(_SelectedTargetFramework)</TargetFrameworks>
</PropertyGroup>
</Target>

</Project>

0 comments on commit 9d43812

Please sign in to comment.