-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathToolkit.SampleApp.WinUI.csproj
95 lines (88 loc) · 4.72 KB
/
Toolkit.SampleApp.WinUI.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>$(NetWindowsTargetFramework)</TargetFramework>
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
<RootNamespace>Esri.ArcGISRuntime.Toolkit.SampleApp</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnableMsixTooling>true</EnableMsixTooling>
<DefineConstants>$(DefineConstants);WINUI</DefineConstants>
<UseRidGraph>true</UseRidGraph>
<PublishAot>True</PublishAot>
</PropertyGroup>
<ItemGroup>
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
<Compile Include="..\Toolkit.SampleApp.UWP\SampleDatasource.cs" Link="SampleDatasource.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.WinUI.Animations" Version="8.1.240916" />
<PackageReference Include="CommunityToolkit.WinUI.Controls.Primitives" Version="8.1.240916" />
<PackageReference Include="CommunityToolkit.WinUI.Helpers" Version="8.1.240916" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240923002" />
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.2.0" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>
<Choose>
<When Condition="'$(UseNugetPackage)'==''">
<ItemGroup>
<ProjectReference Include="..\..\Toolkit\Toolkit.WinUI\Esri.ArcGISRuntime.Toolkit.WinUI.csproj" />
<PackageReference Include="Esri.ArcGISRuntime.WinUI">
<Version>$(ArcGISRuntimePackageVersion)</Version>
</PackageReference>
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="Esri.ArcGISRuntime.Toolkit.WinUI">
<Version>$(UseNugetPackage)</Version>
</PackageReference>
<PackageReference Include="Esri.ArcGISRuntime.WinUI">
<Version>$(UseNugetPackage)</Version>
</PackageReference>
</ItemGroup>
</Otherwise>
</Choose>
<!--<Target BeforeTargets="Build;Rebuild" Name="CopyUWPSamples">
<ItemGroup>
<SampleSources Include="..\Toolkit.SampleApp.UWP\Samples\**\*.*" />
</ItemGroup>
<Copy SourceFiles="@(SampleSources)" DestinationFiles="Samples\%(RecursiveDir)%(Filename)%(Extension)" SkipUnchangedFiles="true" />
</Target>-->
<!--
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
Tools extension to be activated for this project even if the Windows App SDK Nuget
package has not yet been restored.
-->
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<ProjectCapability Include="Msix" />
</ItemGroup>
<ItemGroup>
<Folder Include="Samples\" />
<Compile Include="..\Toolkit.SampleApp.UWP\Samples\**\*.cs" Link="Samples\%(RecursiveDir)%(Filename)%(Extension)" />
<Page Include="..\Toolkit.SampleApp.UWP\Samples\**\*.xaml" Link="Samples\%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Remove="..\Toolkit.SampleApp.UWP\Samples\FeatureDataField\DataGridSample.xaml.cs" />
<Compile Remove="..\Toolkit.SampleApp.UWP\Samples\FeatureDataField\EditFeatureSample.xaml.cs" />
<Page Remove="..\Toolkit.SampleApp.UWP\Samples\FeatureDataField\DataGridSample.xaml" />
<Page Remove="..\Toolkit.SampleApp.UWP\Samples\FeatureDataField\EditFeatureSample.xaml" />
<Page Remove="..\Toolkit.SampleApp.UWP\Samples\FeatureDataField\FeatureDataFieldSample.xaml" />
</ItemGroup>
<!--
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
Explorer "Package and Publish" context menu entry to be enabled for this project even if
the Windows App SDK Nuget package has not yet been restored.
-->
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
</PropertyGroup>
</Project>