forked from dotnet/winforms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
90 lines (73 loc) · 4.49 KB
/
Copy pathDirectory.Build.props
File metadata and controls
90 lines (73 loc) · 4.49 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
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
<Import Project="$(RepositoryEngineeringDir)Analyzer.props" />
<Import Project="$(RepositoryEngineeringDir)FacadeAssemblies.props" />
<Import Project="$(RepositoryEngineeringDir)ApiCompatibility\PublicApiAnalyzer.props" />
<Import Project="$(RepositoryEngineeringDir)Test.props" Condition="'$(IsTestProject)' == 'true'"/>
<PropertyGroup>
<Product>Microsoft® .NET</Product>
<Copyright>$(CopyrightNetFoundation)</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/dotnet/winforms</PackageProjectUrl>
<NetFxTFM>net481</NetFxTFM>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<LangVersion Condition="'$(LangVersion)' == ''">preview</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<PublishWindowsPdb>false</PublishWindowsPdb>
<DefaultAppHostRuntimeIdentifier Condition="'$(TargetArchitecture)'!=''">win-$(TargetArchitecture)</DefaultAppHostRuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' == 'true'">
<!-- There is no need to validate packages while iterating inside VS. -->
<EnablePackageValidation>false</EnablePackageValidation>
</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>
<!-- 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 Condition="'$(CollectCoverage)' == '' and '$(IsTestProject)' == 'true' and '$(TargetFramework)' != ''">true</CollectCoverage>
<!--
coverlet.msbuild 8.0.0 splits its task assemblies by MSBuild host: under 'dotnet build' (MSBuildRuntimeType ==
'Core') it loads tasks\net8.0\coverlet.core.dll, which references System.Runtime, Version=8.0.0.0. The
instrumenter copies its tracker type out of that assembly into the assembly under test, so the injected
Coverlet.Core.Instrumentation.Tracker.* type carries the same reference. .NET Framework cannot resolve
System.Runtime 8.0.0.0, so the tracker's type initializer throws TypeInitializationException at test time.
Instrument .NET (Core) targets only.
Upstream bug: https://github.com/coverlet-coverage/coverlet/issues/1818. Later releases are not yet a way out:
8.0.1 reports no .NET Framework coverage at all (coverlet #1842), and 10.0.1 regressed with a different
TypeInitializationException on net481 (coverlet #2009). Tracked by https://github.com/dotnet/winforms/issues/15030.
-->
<CollectCoverage Condition="'$(TargetFramework)' == 'net481'">false</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>
<PropertyGroup>
<TestRunnerName>XUnitV3</TestRunnerName>
</PropertyGroup>
</Project>