Skip to content

Commit 13f6075

Browse files
committed
update
1 parent 8c696e0 commit 13f6075

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

samples/WinAppSDK/ReswPlusWinAppSDKSample/ReswPlusWinAppSDKSample.csproj

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<RootNamespace>ReswPlusWinAppSDKSample</RootNamespace>
88
<ApplicationManifest>app.manifest</ApplicationManifest>
99
<Platforms>x86;x64;ARM64</Platforms>
10-
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
1110
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
1211
<UseWinUI>true</UseWinUI>
1312
<EnableMsixTooling>true</EnableMsixTooling>
@@ -24,6 +23,17 @@
2423
<AppxBundlePlatforms>x86|x64|arm64</AppxBundlePlatforms>
2524
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
2625
</PropertyGroup>
26+
27+
<PropertyGroup Condition=" '$(Platform)' == 'x86' ">
28+
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
29+
</PropertyGroup>
30+
<PropertyGroup Condition=" '$(Platform)' == 'x64' ">
31+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
32+
</PropertyGroup>
33+
<PropertyGroup Condition=" '$(Platform)' == 'ARM64' ">
34+
<RuntimeIdentifier>win-arm64</RuntimeIdentifier>
35+
</PropertyGroup>
36+
2737
<ItemGroup>
2838
<Content Include="Assets\SplashScreen.scale-200.png" />
2939
<Content Include="Assets\Square150x150Logo.scale-200.png" />
@@ -38,27 +48,25 @@
3848
<Manifest Include="$(ApplicationManifest)" />
3949
</ItemGroup>
4050

41-
<!--
42-
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
43-
Tools extension to be activated for this project even if the Windows App SDK Nuget
44-
package has not yet been restored.
45-
-->
4651
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
4752
<ProjectCapability Include="Msix" />
4853
</ItemGroup>
54+
4955
<ItemGroup>
5056
<ProjectReference Include="..\..\..\src\ReswPlus.SourceGenerator\ReswPlus.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" Private="false">
5157
<Project>{44d125b3-6c8a-4f2f-a76f-bffb2ad7e70d}</Project>
5258
<Name>ReswPlus.SourceGenerator</Name>
5359
</ProjectReference>
5460
<ProjectReference Include="..\ReswPlusWinAppSDKSampleExternalLibrary\ReswPlusWinAppSDKSampleExternalLibrary.csproj" />
5561
</ItemGroup>
62+
5663
<ItemGroup>
5764
<None Update="Assets\Icon.png">
5865
<Pack>True</Pack>
5966
<PackagePath>\</PackagePath>
6067
</None>
6168
</ItemGroup>
69+
6270
<ItemGroup>
6371
<Page Update="MainControl.xaml">
6472
<SubType>Designer</SubType>
@@ -92,12 +100,7 @@
92100
</Page>
93101
</ItemGroup>
94102

95-
<!--
96-
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
97-
Explorer "Package and Publish" context menu entry to be enabled for this project even if
98-
the Windows App SDK Nuget package has not yet been restored.
99-
-->
100103
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
101104
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
102105
</PropertyGroup>
103-
</Project>
106+
</Project>

0 commit comments

Comments
 (0)