-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
100 lines (81 loc) · 5.32 KB
/
Copy pathDirectory.Build.props
File metadata and controls
100 lines (81 loc) · 5.32 KB
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
<Project>
<PropertyGroup>
<GalleryAppName>DevWinUI.Gallery</GalleryAppName>
<ContextMenuLibName>DevWinUI.ContextMenu</ContextMenuLibName>
<BaseNamespace>DevWinUI</BaseNamespace>
<SourceGeneratorLibName>DevWinUI.SourceGenerator</SourceGeneratorLibName>
<ShaderLibName>DevWinUI.Shader</ShaderLibName>
<!-- Major Version -->
<LibraryMajorVersion>10</LibraryMajorVersion>
<!-- Minor Version -->
<DevWinUI_MinorVersion>4</DevWinUI_MinorVersion>
<DevWinUI_Base_MinorVersion>4</DevWinUI_Base_MinorVersion>
<DevWinUI_ContextMenu_MinorVersion>0</DevWinUI_ContextMenu_MinorVersion>
<DevWinUI_SourceGenerator_MinorVersion>2</DevWinUI_SourceGenerator_MinorVersion>
<DevWinUI_Shader_MinorVersion>1</DevWinUI_Shader_MinorVersion>
<DevWinUI_Gallery_MinorVersion>4</DevWinUI_Gallery_MinorVersion>
<!-- Patch Version -->
<DevWinUI_PatchVersion>1</DevWinUI_PatchVersion>
<DevWinUI_Base_PatchVersion>0</DevWinUI_Base_PatchVersion>
<DevWinUI_ContextMenu_PatchVersion>0</DevWinUI_ContextMenu_PatchVersion>
<DevWinUI_SourceGenerator_PatchVersion>0</DevWinUI_SourceGenerator_PatchVersion>
<DevWinUI_Shader_PatchVersion>0</DevWinUI_Shader_PatchVersion>
<DevWinUI_Gallery_PatchVersion>0</DevWinUI_Gallery_PatchVersion>
<!-- -Preview -->
<IsPreviewBuild>false</IsPreviewBuild>
<PreviewLabel>-Preview1</PreviewLabel>
<PreviewBuildSuffix Condition="'$(IsPreviewBuild)' == 'true'">$(PreviewLabel)</PreviewBuildSuffix>
<!-- The NuGet package version -->
<XAMLToolsVersion>1.0.0-alpha.189</XAMLToolsVersion>
<CsWin32Version>0.3.321</CsWin32Version>
<Win2dVersion>1.4.0</Win2dVersion>
<ComputeSharpVersion>3.2.0</ComputeSharpVersion>
<WASDKWinUIVersion>2.3.6</WASDKWinUIVersion>
<NoWarn>CS8632;WIN2D0001;WMC1510;WMC0001</NoWarn>
<OutputPath Condition="'$(MSBuildProjectName)' != $(GalleryAppName)">$(SolutionDir)Output\</OutputPath>
<RootNamespace>$(BaseNamespace)</RootNamespace>
<ImplicitUsings>true</ImplicitUsings>
<LangVersion>Latest</LangVersion>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
<CsWinRTAotWarningLevel Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">2</CsWinRTAotWarningLevel>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<!-- The NuGet package options -->
<PackageIcon>Icon.png</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Authors>Mahdi Hosseini</Authors>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GeneratePackageOnBuild Condition="'$(Configuration)' != 'Debug' And '$(MSBuildProjectName)' != $(GalleryAppName)">True</GeneratePackageOnBuild>
<Copyright>Copyright (c) 2021-$([System.DateTime]::Now.Year) - Mahdi Hosseini</Copyright>
<PackageProjectUrl>https://github.com/ghost1372/DevWinUI</PackageProjectUrl>
<RepositoryUrl>https://github.com/ghost1372/DevWinUI</RepositoryUrl>
<PackageReleaseNotes>https://github.com/ghost1372/DevWinUI/releases</PackageReleaseNotes>
</PropertyGroup>
<PropertyGroup Condition="$(MSBuildProjectName) != $(SourceGeneratorLibName) ">
<!-- TargetFramework version -->
<DebugTargetFramework>net10.0-windows10.0.19041.0</DebugTargetFramework>
<DebugShaderAndGalleryTargetFramework>net10.0-windows10.0.26100.0</DebugShaderAndGalleryTargetFramework>
<GalleryTargetFramework>$(DebugShaderAndGalleryTargetFramework)</GalleryTargetFramework>
<TargetFrameworks Condition=" '$(Configuration)' == 'Release' And $(MSBuildProjectName) != $(GalleryAppName) ">$(DebugTargetFramework)</TargetFrameworks>
<TargetFrameworks Condition=" '$(Configuration)' == 'Debug' And $(MSBuildProjectName) != $(GalleryAppName)">$(DebugTargetFramework)</TargetFrameworks>
<TargetFrameworks Condition=" '$(Configuration)' == 'Release' And $(MSBuildProjectName) == $(ShaderLibName) ">$(DebugShaderAndGalleryTargetFramework)</TargetFrameworks>
<TargetFrameworks Condition=" '$(Configuration)' == 'Debug' And $(MSBuildProjectName) == $(ShaderLibName)">$(DebugShaderAndGalleryTargetFramework)</TargetFrameworks>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<UseWinUI Condition="'$(MSBuildProjectName)' != $(ContextMenuLibName)">true</UseWinUI>
<WinUISDKReferences Condition="'$(MSBuildProjectName)' != $(ContextMenuLibName)">false</WinUISDKReferences>
</PropertyGroup>
<!-- The NuGet versions of dependencies to build against. -->
<ItemGroup Condition="'$(MSBuildProjectName)' != $(ContextMenuLibName) And '$(MSBuildProjectName)' != $(SourceGeneratorLibName) And '$(MSBuildProjectName)' != $(GalleryAppName)">
<PackageReference Include="Microsoft.WindowsAppSDK.WinUI" Version="$(WASDKWinUIVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(MSBuildProjectName)' != $(GalleryAppName)">
<None Include="..\..\tools\Assets\DevWinUI.png" Pack="true" PackagePath="Icon.png" />
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>
<Target Name="GetVersion">
<Message Text="$(Version)" Importance="High" />
</Target>
</Project>