зеркало из https://github.com/dotnet/winforms.git
87 строки
4.1 KiB
XML
87 строки
4.1 KiB
XML
<Project>
|
|
|
|
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
|
|
<Import Project="$(RepositoryEngineeringDir)CodeStyle.props" />
|
|
<Import Project="$(RepositoryEngineeringDir)FacadeAssemblies.props" />
|
|
<Import Project="$(RepositoryEngineeringDir)ApiCompatibility\PublicApiAnalyzer.props" />
|
|
<Import Project="$(RepositoryEngineeringDir)Test.props" Condition="'$(IsTestProject)' == 'true'"/>
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>$(NetCurrent)</TargetFramework>
|
|
<Product>Microsoft® .NET</Product>
|
|
<Copyright>$(CopyrightNetFoundation)</Copyright>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
|
<LangVersion Condition="'$(LangVersion)' == ''">preview</LangVersion>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
|
|
|
<IsAnalyzerProject>false</IsAnalyzerProject>
|
|
<IsAnalyzerProject Condition="!$(IsTestProject) and
|
|
($(MSBuildProjectName.EndsWith('.Analyzers'))
|
|
or $(MSBuildProjectName.EndsWith('.CodeFixes.VisualBasic'))
|
|
or $(MSBuildProjectName.EndsWith('.CodeFixes.CSharp'))
|
|
or $(MSBuildProjectName.EndsWith('.Analyzers.VisualBasic'))
|
|
or $(MSBuildProjectName.EndsWith('.Analyzers.CSharp')))"
|
|
>true</IsAnalyzerProject>
|
|
|
|
<!-- Only upgrade NuGetAudit warnings to errors for official builds. -->
|
|
<WarningsNotAsErrors Condition="'$(OfficialBuild)' != 'true'">$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
Set assembly version to align with major and minor version, as for the patches and revisions should be manually
|
|
updated per assembly if it is serviced.
|
|
|
|
Note, any components that aren't exposed as references in the targeting pack (like analyzers/generators) those should rev
|
|
so that they can exist SxS, as the compiler relies on different version to change assembly version for caching purposes.
|
|
-->
|
|
<PropertyGroup Condition="'$(IsAnalyzerProject)' != 'true'">
|
|
<AssemblyVersion>$(MajorVersion).$(MinorVersion).0.0</AssemblyVersion>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(IsAnalyzerProject)' == 'true'">
|
|
<IsRoslynComponent>true</IsRoslynComponent>
|
|
|
|
<!-- Mark it so eng/packageContent.targets knows how to correctly package it -->
|
|
<DefineConstants>WINFORMS_ANALYZERS</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<!-- SDK flipped to 'true' by default https://github.com/dotnet/sdk/pull/12720 -->
|
|
<PropertyGroup>
|
|
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
|
|
</PropertyGroup>
|
|
|
|
<!-- Allow SourceLink to work for strongly types resource files (SR) by embedding generated files into the PDBs -->
|
|
<PropertyGroup>
|
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
|
</PropertyGroup>
|
|
|
|
<!-- For the purposes of generating code coverage as part of the build -->
|
|
<PropertyGroup Condition="'$(Coverage)' == 'true'">
|
|
<!-- Coverlet's PDB check cannot handle deterministic source paths https://github.com/tonerdo/coverlet/issues/363 -->
|
|
<DeterministicSourcePaths>false</DeterministicSourcePaths>
|
|
|
|
<!-- Note: CoverletOutput references $(TargetDir) so it is set in Directory.Build.targets -->
|
|
|
|
<!-- https://github.com/tonerdo/coverlet/issues/618 -->
|
|
<IncludeTestAssembly>true</IncludeTestAssembly>
|
|
|
|
<CollectCoverage>true</CollectCoverage>
|
|
<SingleHit>true</SingleHit>
|
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
<CoverletOutputFormat>opencover</CoverletOutputFormat>
|
|
<Include></Include>
|
|
<Exclude></Exclude>
|
|
<!-- Exclude anything tagged with ExcludeFromCodeCoverage !!Avoid using this!! -->
|
|
<ExcludeByAttribute>ExcludeFromCodeCoverage</ExcludeByAttribute>
|
|
<ExcludeByFile />
|
|
</PropertyGroup>
|
|
|
|
<!-- workaround for package downgrade in Microsoft.NetCore.Platforms -->
|
|
<PropertyGroup>
|
|
<DisableImplicitNETCorePlatformsReference>true</DisableImplicitNETCorePlatformsReference>
|
|
</PropertyGroup>
|
|
|
|
</Project>
|