WindowsCommunityToolkit/Directory.Build.props

116 строки
5.0 KiB
Plaintext
Исходник Обычный вид История

2017-08-27 06:24:03 +03:00
<Project>
<PropertyGroup>
<Authors>Microsoft.Toolkit</Authors>
2017-08-27 06:24:03 +03:00
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<NoPackageAnalysis>true</NoPackageAnalysis>
<PackageIconUrl>https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/master/build/nuget.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/Microsoft/UWPCommunityToolkit</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/Microsoft/UWPCommunityToolkit/blob/master/license.md</PackageLicenseUrl>
2018-05-07 04:45:32 +03:00
<PackageReleaseNotes>Preview release of v3.0</PackageReleaseNotes>
2018-05-24 01:54:29 +03:00
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.. All rights reserved.</Copyright>
2017-08-27 06:34:55 +03:00
2017-08-27 17:24:04 +03:00
2017-08-30 05:06:12 +03:00
2017-08-27 06:34:55 +03:00
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Toolkit.ruleset</CodeAnalysisRuleSet>
2017-08-27 16:05:08 +03:00
<DefaultLanguage>en-US</DefaultLanguage>
2017-08-27 17:24:04 +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>
<IsWin32Project Condition="'$(IsDesignProject)' != 'true'">$(MSBuildProjectName.Contains('Win32'))</IsWin32Project>
2017-08-27 17:24:04 +03:00
<IsSampleProject>$(MSBuildProjectName.Contains('Sample'))</IsSampleProject>
2018-04-26 23:15:05 +03:00
<DefaultTargetPlatformVersion>17134</DefaultTargetPlatformVersion>
2018-04-14 02:52:50 +03:00
<DefaultTargetPlatformMinVersion>15063</DefaultTargetPlatformMinVersion>
<PackageOutputPath>$(MSBuildThisFileDirectory)bin\nupkg</PackageOutputPath>
2017-08-27 17:24:04 +03:00
</PropertyGroup>
<Choose>
<When Condition="'$(IsWin32Project)' == 'true'">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<!-- Compiler -->
<FileAlignment>512</FileAlignment>
<HighEntropyVA>true</HighEntropyVA>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<WarningsAsErrors />
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>1591</NoWarn>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<OutputPath>bin\$(Platform)\$(Configuration)</OutputPath>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
</PropertyGroup>
</When>
</Choose>
<Choose>
<When Condition="'$(IsTestProject)' != 'true' and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'">
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
</When>
</Choose>
2017-08-27 06:34:55 +03:00
<Choose>
<When Condition="('$(IsUwpProject)' == 'true' or '$(IsWin32Project)' == 'true') and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'">
<PropertyGroup>
<GenerateLibraryLayout>true</GenerateLibraryLayout>
</PropertyGroup>
</When>
</Choose>
<Choose>
<When Condition="'$(IsTestProject)' != 'true' and '$(SourceLinkEnabled)' != 'false' and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'">
<ItemGroup>
2018-04-07 16:40:41 +03:00
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.8.0" PrivateAssets="All" />
</ItemGroup>
</When>
</Choose>
2017-08-27 06:34:55 +03:00
<Choose>
<When Condition="'$(IsTestProject)' != 'true' and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'">
<ItemGroup>
<!--<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="15.3.83" PrivateAssets="all" />-->
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="all" />
2017-08-27 17:40:17 +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>
</When>
</Choose>
2017-08-27 16:05:08 +03:00
2017-08-27 06:34:55 +03:00
<PropertyGroup>
2018-03-26 00:09:16 +03:00
<NerdbankGitVersioningVersion>2.1.23</NerdbankGitVersioningVersion>
2017-08-27 06:24:03 +03:00
</PropertyGroup>
2017-08-27 06:34:55 +03:00
<ItemGroup>
2018-03-26 00:09:16 +03:00
<PackageReference Include="Nerdbank.GitVersioning" Version=" 2.1.23" PrivateAssets="all" />
2017-08-27 06:34:55 +03:00
</ItemGroup>
2017-08-27 06:24:03 +03:00
<ItemGroup>
<AdditionalFiles Include="..\stylecop.json">
<Link>stylecop.json</Link>
</AdditionalFiles>
</ItemGroup>
2017-08-27 06:24:03 +03:00
</Project>