Skip to content

Commit 5b14120

Browse files
committed
Only reference WindowsDesktop SDK on legacy uwp
1 parent 8766f32 commit 5b14120

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/AppServices/src/CommunityToolkit.AppServices.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</PropertyGroup>
3030

3131
<!-- Add the Desktop Extension SDK when on UWP-->
32-
<ItemGroup Condition="'$(IsUwp)' == 'true'">
32+
<ItemGroup Condition="'$(IsUwp)' == 'true' AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'windows'">
3333
<SDKReference Include="WindowsDesktop, Version=$(TargetPlatformVersion)">
3434
<Name>Windows Desktop Extensions for the UWP</Name>
3535
</SDKReference>
@@ -55,7 +55,7 @@
5555
<None Include="CommunityToolkit.AppServices.targets" PackagePath="build\uap10.0" Pack="true" />
5656

5757
<!-- Pack the source generator to the right package folder -->
58-
<None Include="..\CommunityToolkit.AppServices.SourceGenerators\bin\$(Configuration)\netstandard2.0\CommunityToolkit.AppServices.SourceGenerators.dll" PackagePath="analyzers\dotnet\cs" Pack="true" Visible="false" />
58+
<None Include="..\CommunityToolkit.AppServices.SourceGenerators\bin\$(Platform)\$(Configuration)\netstandard2.0\CommunityToolkit.AppServices.SourceGenerators.dll" PackagePath="analyzers\dotnet\cs" Pack="true" Visible="false" />
5959
</ItemGroup>
6060

6161
<!-- Remove imported global usings -->

0 commit comments

Comments
 (0)