Skip to content

Commit

Permalink
Update the UniversalWindowsPlatformTargetFrameworks condition to ensu…
Browse files Browse the repository at this point in the history
…re the correct Windows Kit version is installed
  • Loading branch information
kevinchalet committed Mar 26, 2024
1 parent fcffb83 commit 2588fea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@
</NetStandardTargetFrameworks>

<!--
Note: the UWP/.NET Core 5.0 reference assemblies may not be available if the Windows SDK is not installed.
To ensure the solution can be built on machines that don't have UWP tooling installed, a directory check is
used to ensure the .NET Core 5.0 reference assemblies are present on the machine before targeting uap10.0.
Note: the .NET Core 5.0 reference assemblies or UWP contract assemblies may not be available if
the Windows SDK is not installed (or if a different version is installed). To ensure the solution
can be built on machines that don't have the UWP tooling installed, directory checks are used to
ensure the reference and contract assemblies are present on the machine before targeting uap10.0.
-->
<UniversalWindowsPlatformTargetFrameworks
Condition=" '$(UniversalWindowsPlatformTargetFrameworks)' == '' And $([MSBuild]::IsOSPlatform('Windows')) And
('$(GITHUB_ACTIONS)' == 'true' Or Exists('$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETCore\v5.0')) ">
('$(GITHUB_ACTIONS)' == 'true' Or (Exists('$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETCore\v5.0') And
Exists('$(MSBuildProgramFiles32)\Windows Kits\10\References\10.0.17763.0'))) ">
uap10.0.17763
</UniversalWindowsPlatformTargetFrameworks>
</PropertyGroup>
Expand Down

0 comments on commit 2588fea

Please sign in to comment.