-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDevWinUI.Gallery.csproj
108 lines (102 loc) · 4.96 KB
/
DevWinUI.Gallery.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
96
97
98
99
100
101
102
103
104
105
106
107
108
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net9.0-windows10.0.19041.0</TargetFramework>
<RootNamespace>$(BaseNamespace)Gallery</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;ARM64</Platforms>
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<EnableMsixTooling>true</EnableMsixTooling>
<TrimMode>partial</TrimMode>
<ImplicitUsings>true</ImplicitUsings>
<LangVersion>preview</LangVersion>
<IsAotCompatible>True</IsAotCompatible>
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
<WindowsPackageType Condition="'$(GITHUB_ACTIONS)'=='true'">None</WindowsPackageType>
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
<Version>$(LibraryMajorVersion).$(DevWinUI_Gallery_MinorVersion).$(DevWinUI_Gallery_PatchVersion)$(PreviewBuildSuffix)</Version>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<NoWarn>NU1903;NU1902;CS8632;WMC1506;WMC1006;NU1900</NoWarn>
<!--Remove git hash from assembly informational version in .NET >= 8, Example: false = 1.0.0, true = 1.0.0+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-->
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<GITHUB_ACTIONS>false</GITHUB_ACTIONS>
</PropertyGroup>
<ItemGroup>
<Content Include="ControlPagesSampleCode\**\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Include="Assets\**\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ColorCode.Core" Version="2.0.15" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="CommunityToolkit.WinUI.Media" Version="8.2.250129-preview2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.1" />
<PackageReference Include="nucs.JsonSettings" Version="2.0.2" />
<PackageReference Include="nucs.JsonSettings.AutosaveGenerator" Version="2.0.4" />
</ItemGroup>
<!--
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>
<ProjectReference Include="..\DevWinUI.ContextMenu\DevWinUI.ContextMenu.csproj" />
<ProjectReference Include="..\DevWinUI.Controls\DevWinUI.Controls.csproj" />
<ProjectReference Include="..\DevWinUI\DevWinUI.csproj" />
</ItemGroup>
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<ItemGroup>
<None Update="T4Templates\NavigationPageMappings.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>NavigationPageMappings.cs</LastGenOutput>
</None>
<Compile Update="T4Templates\NavigationPageMappings.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>NavigationPageMappings.tt</DependentUpon>
</Compile>
<None Update="T4Templates\BreadcrumbPageMappings.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>BreadcrumbPageMappings.cs</LastGenOutput>
</None>
<Compile Update="T4Templates\BreadcrumbPageMappings.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>BreadcrumbPageMappings.tt</DependentUpon>
</Compile>
</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>
<!-- Publish Properties -->
<PropertyGroup>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<PublishTrimmed Condition="'$(Configuration)' == 'Debug'">False</PublishTrimmed>
<PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>
</PropertyGroup>
<Target Name="TransformAllT4Templates" BeforeTargets="BeforeBuild">
<ItemGroup>
<!-- This picks up all T4 templates in the project -->
<T4Template Include="**\*.tt" />
</ItemGroup>
<!-- Check if TextTransform.exe exists before running -->
<Exec Command="if exist "$(DevEnvDir)TextTransform.exe" "$(DevEnvDir)TextTransform.exe" "%(T4Template.FullPath)"" Condition="Exists('$(DevEnvDir)TextTransform.exe')" />
</Target>
</Project>