2017-08-27 06:24:03 +03:00
|
|
|
<Project>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2018-05-24 01:48:33 +03:00
|
|
|
<Authors>Microsoft.Toolkit</Authors>
|
2017-08-27 06:24:03 +03:00
|
|
|
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
|
|
|
<NoPackageAnalysis>true</NoPackageAnalysis>
|
2021-07-19 20:39:06 +03:00
|
|
|
<PackageIconUrl>https://raw.githubusercontent.com/CommunityToolkit/WindowsCommunityToolkit/main/build/nuget.png</PackageIconUrl>
|
2021-02-23 22:35:22 +03:00
|
|
|
<PackageIcon>images\nuget.png</PackageIcon>
|
2021-07-19 20:39:06 +03:00
|
|
|
<PackageProjectUrl>https://github.com/CommunityToolkit/WindowsCommunityToolkit</PackageProjectUrl>
|
2021-02-14 11:32:05 +03:00
|
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
2021-07-19 20:39:06 +03:00
|
|
|
<PackageReleaseNotes>https://github.com/CommunityToolkit/WindowsCommunityToolkit/releases</PackageReleaseNotes>
|
2018-05-24 01:54:58 +03:00
|
|
|
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright>
|
2017-08-27 16:05:08 +03:00
|
|
|
<DefaultLanguage>en-US</DefaultLanguage>
|
2017-10-11 09:08:47 +03:00
|
|
|
<IsDesignProject>$(MSBuildProjectName.Contains('.Design'))</IsDesignProject>
|
2017-08-27 17:24:04 +03:00
|
|
|
<IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject>
|
2017-09-02 03:02:55 +03:00
|
|
|
<IsUwpProject Condition="'$(IsDesignProject)' != 'true'">$(MSBuildProjectName.Contains('Uwp'))</IsUwpProject>
|
2017-08-27 17:24:04 +03:00
|
|
|
<IsSampleProject>$(MSBuildProjectName.Contains('Sample'))</IsSampleProject>
|
2020-05-30 17:46:44 +03:00
|
|
|
<TargetPlatformBaseVersion>10.0</TargetPlatformBaseVersion>
|
|
|
|
<TargetPlatformRevision>19041</TargetPlatformRevision>
|
|
|
|
<TargetPlatformMinRevision>17763</TargetPlatformMinRevision>
|
2018-08-28 20:18:10 +03:00
|
|
|
<PackageOutputPath>$(MSBuildThisFileDirectory)bin\nupkg</PackageOutputPath>
|
2018-08-01 03:03:26 +03:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2020-05-28 06:33:44 +03:00
|
|
|
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
|
|
|
|
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
2017-08-27 17:24:04 +03:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-09-21 16:49:09 +03:00
|
|
|
<Choose>
|
2017-10-11 09:08:47 +03:00
|
|
|
<When Condition="'$(IsTestProject)' != 'true' and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'">
|
2017-09-21 16:49:09 +03:00
|
|
|
<PropertyGroup>
|
2018-08-28 20:18:10 +03:00
|
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
2017-09-21 16:49:09 +03:00
|
|
|
</PropertyGroup>
|
|
|
|
</When>
|
2021-02-14 11:32:28 +03:00
|
|
|
<Otherwise>
|
|
|
|
<PropertyGroup>
|
|
|
|
<IsPackable>false</IsPackable>
|
|
|
|
</PropertyGroup>
|
|
|
|
</Otherwise>
|
2017-09-21 16:49:09 +03:00
|
|
|
</Choose>
|
2017-08-27 06:34:55 +03:00
|
|
|
|
2017-09-21 16:49:09 +03:00
|
|
|
<Choose>
|
2018-11-14 01:21:41 +03:00
|
|
|
<When Condition="('$(IsUwpProject)' == 'true') and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'">
|
2017-09-21 16:49:09 +03:00
|
|
|
<PropertyGroup>
|
|
|
|
<GenerateLibraryLayout>true</GenerateLibraryLayout>
|
|
|
|
</PropertyGroup>
|
|
|
|
</When>
|
|
|
|
</Choose>
|
2017-08-27 20:45:45 +03:00
|
|
|
|
2020-04-06 21:19:01 +03:00
|
|
|
<Choose>
|
|
|
|
<When Condition="'$(Configuration)' == 'Debug' and '$(IsDesignProject)' != 'true'">
|
|
|
|
<!-- Debug builds have this turned on by default, but it breaks our Xaml Islands Scenarios -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<EnableXBindDiagnostics>false</EnableXBindDiagnostics>
|
2021-02-14 11:32:24 +03:00
|
|
|
<EnableTypeInfoReflection>false</EnableTypeInfoReflection>
|
2020-04-06 21:19:01 +03:00
|
|
|
</PropertyGroup>
|
|
|
|
</When>
|
|
|
|
</Choose>
|
|
|
|
|
2017-09-21 16:49:09 +03:00
|
|
|
<Choose>
|
2020-05-28 11:24:27 +03:00
|
|
|
<When Condition="'$(SourceLinkEnabled)' != 'false' and '$(IsSampleProject)' != 'true'">
|
2018-06-07 18:57:33 +03:00
|
|
|
<PropertyGroup>
|
2021-02-14 11:32:22 +03:00
|
|
|
<!-- Declare that the Repository URL can be published to NuSpec -->
|
2018-06-07 18:57:33 +03:00
|
|
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
2021-02-14 11:32:22 +03:00
|
|
|
<!-- Embed source files that are not tracked by the source control manager to the PDB -->
|
2018-06-07 18:57:33 +03:00
|
|
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
2021-02-14 11:32:22 +03:00
|
|
|
<!-- Include PDB in the built .nupkg -->
|
2018-06-07 18:57:33 +03:00
|
|
|
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
|
|
|
</PropertyGroup>
|
2018-08-28 20:18:10 +03:00
|
|
|
<ItemGroup>
|
2021-02-14 11:32:20 +03:00
|
|
|
<PackageReference Include="Microsoft.SourceLink.AzureRepos.Git" Version="1.0.0" PrivateAssets="All" />
|
|
|
|
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
2017-09-21 16:49:09 +03:00
|
|
|
</ItemGroup>
|
|
|
|
</When>
|
|
|
|
</Choose>
|
2017-08-27 06:34:55 +03:00
|
|
|
|
2017-09-21 16:49:09 +03:00
|
|
|
<Choose>
|
2020-03-26 21:39:37 +03:00
|
|
|
<When Condition="'$(IsDesignProject)' != 'true'">
|
2017-09-21 16:49:09 +03:00
|
|
|
<ItemGroup>
|
2021-02-14 11:32:20 +03:00
|
|
|
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
|
2020-03-26 21:39:37 +03:00
|
|
|
</ItemGroup>
|
|
|
|
</When>
|
|
|
|
</Choose>
|
2017-08-27 17:40:17 +03:00
|
|
|
|
2020-03-26 21:39:37 +03:00
|
|
|
<Choose>
|
|
|
|
<When Condition="'$(IsTestProject)' != 'true' and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'">
|
|
|
|
<ItemGroup>
|
2017-09-21 16:49:09 +03:00
|
|
|
<EmbeddedResource Include="**\*.rd.xml" />
|
|
|
|
<Page Include="**\*.xaml" Exclude="**\bin\**\*.xaml;**\obj\**\*.xaml" SubType="Designer" Generator="MSBuild:Compile" />
|
|
|
|
<Compile Update="**\*.xaml.cs" DependentUpon="%(Filename)" />
|
|
|
|
</ItemGroup>
|
2018-07-27 01:46:45 +03:00
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
|
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
|
|
</PropertyGroup>
|
2017-09-21 16:49:09 +03:00
|
|
|
</When>
|
|
|
|
</Choose>
|
2017-08-27 06:24:03 +03:00
|
|
|
|
2018-08-06 23:24:54 +03:00
|
|
|
<PropertyGroup Condition="'$(IsUwpProject)' == 'true'">
|
|
|
|
<!-- 8002 is a strong named -> non-strong-named reference -->
|
|
|
|
<!-- This is valid for platforms other than .NET Framework (and is needed for the UWP targets -->
|
|
|
|
<NoWarn>$(NoWarn);8002</NoWarn>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-08-27 06:34:55 +03:00
|
|
|
<ItemGroup>
|
2021-02-23 04:11:45 +03:00
|
|
|
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" />
|
2017-08-27 06:34:55 +03:00
|
|
|
</ItemGroup>
|
2017-08-27 06:24:03 +03:00
|
|
|
|
2018-02-14 08:36:25 +03:00
|
|
|
<ItemGroup>
|
2018-05-31 21:04:56 +03:00
|
|
|
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json">
|
2018-02-14 08:36:25 +03:00
|
|
|
<Link>stylecop.json</Link>
|
|
|
|
</AdditionalFiles>
|
2021-02-14 11:32:33 +03:00
|
|
|
<None Include="$(MSBuildThisFileDirectory)License.md" Pack="true" PackagePath="\" />
|
2021-02-14 11:32:20 +03:00
|
|
|
<None Include="$(MSBuildThisFileDirectory)build\nuget.png" Pack="true" PackagePath="images\" />
|
2018-02-14 08:36:25 +03:00
|
|
|
</ItemGroup>
|
2020-05-30 17:46:44 +03:00
|
|
|
|
2021-02-14 11:32:20 +03:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)build\Windows.Toolkit.VisualStudio.Design.props" Condition="'$(IsDesignProject)' == 'true'" />
|
2020-05-30 18:11:31 +03:00
|
|
|
|
2021-05-03 20:58:53 +03:00
|
|
|
</Project>
|