forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Adjust server project cross-targeted build
- Loading branch information
1 parent
33d9c87
commit 9d43812
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/Uno.Sdk/targets/Uno.SingleProject.WinAppSdk.VS.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |