|
9 | 9 | <PackageLicenseUrl>https://github.com/Microsoft/WindowsCommunityToolkit/blob/master/license.md</PackageLicenseUrl>
|
10 | 10 | <PackageReleaseNotes>v3.0 release https://github.com/Microsoft/WindowsCommunityToolkit/releases</PackageReleaseNotes>
|
11 | 11 | <Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright>
|
| 12 | + |
12 | 13 | <CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Toolkit.ruleset</CodeAnalysisRuleSet>
|
| 14 | + |
13 | 15 | <DefaultLanguage>en-US</DefaultLanguage>
|
| 16 | + |
14 | 17 | <IsDesignProject>$(MSBuildProjectName.Contains('.Design'))</IsDesignProject>
|
15 | 18 | <IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject>
|
16 | 19 | <IsUwpProject Condition="'$(IsDesignProject)' != 'true'">$(MSBuildProjectName.Contains('Uwp'))</IsUwpProject>
|
17 | 20 | <IsWin32Project Condition="'$(IsDesignProject)' != 'true'">$(MSBuildProjectName.Contains('Win32'))</IsWin32Project>
|
18 |
| - <IsWpfProject Condition="'$(IsDesignProject)' != 'true'">$(MSBuildProjectName.Contains('Wpf'))</IsWpfProject> |
19 |
| - <IsFormsProject Condition="'$(IsDesignProject)' != 'true'">$(MSBuildProjectName.Contains('Forms'))</IsFormsProject> |
20 | 21 | <IsSampleProject>$(MSBuildProjectName.Contains('Sample'))</IsSampleProject>
|
| 22 | + |
21 | 23 | <DefaultTargetPlatformVersion>17134</DefaultTargetPlatformVersion>
|
22 | 24 | <DefaultTargetPlatformMinVersion>15063</DefaultTargetPlatformMinVersion>
|
23 |
| - <PackageOutputPath>$(MSBuildThisFileDirectory)bin\nupkg</PackageOutputPath> |
| 25 | + <PackageOutputPath>$(MSBuildThisFileDirectory)bin\nupkg</PackageOutputPath> |
24 | 26 | </PropertyGroup>
|
25 | 27 |
|
26 | 28 | <PropertyGroup>
|
27 |
| - <SignAssembly Condition="'$(SignAssembly)' == '' and '$(IsUwpProject)' != 'true'" >true</SignAssembly> |
| 29 | + <SignAssembly Condition="'$(SignAssembly)' == '' and '$(IsUwpProject)' != 'true'" >true</SignAssembly> |
28 | 30 | <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
|
29 | 31 | </PropertyGroup>
|
30 | 32 |
|
31 | 33 | <Choose>
|
32 |
| - <When Condition="'$(IsWin32Project)' == 'true' or '$(IsWpfProject)' == 'true' or '$(IsFormsProject)' == 'true'"> |
| 34 | + <When Condition="'$(IsWin32Project)' == 'true'"> |
33 | 35 | <PropertyGroup>
|
34 | 36 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
35 | 37 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
36 | 38 | <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
|
37 | 39 | <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
38 | 40 |
|
39 |
| - <!-- Need RS5 or later. |
40 |
| - |
41 |
| - When changing this value, ensure the SDK is installed with the build process. |
42 |
| - Need to check several files: |
43 |
| - - /.vsts-ci.yml |
44 |
| - - /.vsts-pr.yml |
45 |
| -
|
46 |
| - This also needs to be installed on your local machine. Can do this with PowerShell: |
47 |
| - ./build/Install-WindowsSDKISO.ps1 17713 |
48 |
| - --> |
49 |
| - <TargetPlatformVersion>10.0.17733.0</TargetPlatformVersion> |
50 |
| - <TargetPlatformMinVersion>10.0.17134.0</TargetPlatformMinVersion> |
51 |
| - |
52 | 41 | <!-- Compiler -->
|
53 | 42 | <FileAlignment>512</FileAlignment>
|
54 | 43 | <HighEntropyVA>true</HighEntropyVA>
|
|
60 | 49 | <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
61 | 50 | <OutputPath>bin\$(Platform)\$(Configuration)</OutputPath>
|
62 | 51 | <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
63 |
| - |
64 | 52 | </PropertyGroup>
|
65 | 53 | <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
|
66 | 54 | <DebugSymbols>true</DebugSymbols>
|
|
80 | 68 | <Choose>
|
81 | 69 | <When Condition="'$(IsTestProject)' != 'true' and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'">
|
82 | 70 | <PropertyGroup>
|
83 |
| - <GenerateDocumentationFile>true</GenerateDocumentationFile> |
| 71 | + <GenerateDocumentationFile>true</GenerateDocumentationFile> |
84 | 72 | </PropertyGroup>
|
85 | 73 | </When>
|
86 | 74 | </Choose>
|
87 | 75 |
|
88 | 76 | <Choose>
|
89 |
| - <When Condition="('$(IsUwpProject)' == 'true' or '$(IsWin32Project)' == 'true' or '$(IsWpfProject)' == 'true' or '$(IsFormsProject)' == 'true') and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'"> |
| 77 | + <When Condition="('$(IsUwpProject)' == 'true' or '$(IsWin32Project)' == 'true') and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'"> |
90 | 78 | <PropertyGroup>
|
91 | 79 | <GenerateLibraryLayout>true</GenerateLibraryLayout>
|
92 | 80 | </PropertyGroup>
|
|
103 | 91 | <!-- Optional: Include PDB in the built .nupkg -->
|
104 | 92 | <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
105 | 93 | </PropertyGroup>
|
106 |
| - <ItemGroup> |
| 94 | + <ItemGroup> |
107 | 95 | <PackageReference Include="Microsoft.SourceLink.Vsts.Git" Version="1.0.0-beta-62925-02" PrivateAssets="All"/>
|
108 | 96 | <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62925-02" PrivateAssets="All"/>
|
109 | 97 | </ItemGroup>
|
|
127 | 115 | </Choose>
|
128 | 116 |
|
129 | 117 | <PropertyGroup Condition="'$(IsUwpProject)' == 'true'">
|
130 |
| - |
131 | 118 | <!-- 8002 is a strong named -> non-strong-named reference -->
|
132 | 119 | <!-- This is valid for platforms other than .NET Framework (and is needed for the UWP targets -->
|
133 | 120 | <NoWarn>$(NoWarn);8002</NoWarn>
|
|
0 commit comments