Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
99 lines (87 loc) · 5.34 KB
/
Copy pathDirectory.Build.props
File metadata and controls
99 lines (87 loc) · 5.34 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
91
92
93
94
95
96
97
98
99
<Project>
<PropertyGroup>
<ContinuousIntegrationBuild Condition="'$(OfficialBuildId)' != ''">true</ContinuousIntegrationBuild>
<PublishWindowsPdb>false</PublishWindowsPdb>
</PropertyGroup>
<PropertyGroup>
<UseSharedCompilation>false</UseSharedCompilation>
<LangVersion>Latest</LangVersion>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<_SkipUpgradeNetAnalyzersNuGetWarning>true</_SkipUpgradeNetAnalyzersNuGetWarning>
</PropertyGroup>
<PropertyGroup>
<RepositoryUrl>https://github.com/dotnet/diagnostics</RepositoryUrl>
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<EnableSourceControlManagerQueries>true</EnableSourceControlManagerQueries>
<RepositoryName>diagnostics</RepositoryName>
</PropertyGroup>
<!-- Inject overrides that must run after the Microsoft.Build.Traversal SDK targets
(e.g. dropping the Test->Build dependency on prebuilt test-only legs). -->
<PropertyGroup>
<CustomAfterTraversalTargets>$(MSBuildThisFileDirectory)eng/TraversalOverrides.targets</CustomAfterTraversalTargets>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
<!--
$(TargetOS) - target operating system (win, linux, osx). Defaults to host OS.
$(TargetArch) - architecture to test (x64, x86, arm, arm64). Defaults to host architecture.
$(TargetRid) - the runtime identifier (rid) to against (win-x64, linux-arm64, linux-musl-x64, etc).
$(Configuration) - configuration to test (Debug, Release). Defaults to Debug.
$(ArtifactsBinDir) - artifacts\bin directory
$(ArtifactsDotnetTestDir) - artifacts\dotnet-test directory
-->
<PropertyGroup>
<SrcDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'src'))</SrcDir>
<TestDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'src', 'tests'))</TestDir>
<ArtifactsDotnetTestDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'dotnet-test'))</ArtifactsDotnetTestDir>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetOS)' == ''">
<TargetOS>linux</TargetOS>
<TargetOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">Windows_NT</TargetOS>
<TargetOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">linux</TargetOS>
<TargetOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">osx</TargetOS>
</PropertyGroup>
<PropertyGroup>
<TargetArch Condition="'$(TargetArch)' == ''">$(Platform)</TargetArch>
<TargetArch Condition="'$(TargetArch)' == 'AnyCpu'">$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant)</TargetArch>
<ArtifactsBinNativeDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', '$(TargetOS).$(TargetArch).$(Configuration)'))</ArtifactsBinNativeDir>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetRid)' == ''">
<TargetRidOS>$(TargetOS)</TargetRidOS>
<TargetRidOS Condition="'$(TargetOS)' == 'Windows_NT'">win</TargetRidOS>
<TargetRid>$(TargetRidOS)-$(TargetArch)</TargetRid>
</PropertyGroup>
<PropertyGroup>
<!--
DesktopTargetFramework and ExtensionsDesktopSubdirectoryW in src/SOS/inc/hostservices.h
must identify the same package directory; otherwise the native desktop host probes a path
that packaging does not produce.
-->
<DesktopTargetFramework>net462</DesktopTargetFramework>
<!--
This represents the minimum supported .NET Version, so the min version that the tools must
be able to run against for a simple customer experience.
NetCoreAppMinTargetFramework, ExtensionsNetCoreSubdirectory in src/SOS/inc/hostservices.h,
__targetFramework in build.sh/build-native.cmd, and the Debugger.Tests.Configs must remain
aligned. Otherwise the native CoreCLR host probes a package directory that the build does
not produce.
-->
<NetCoreAppMinVersion>8.0</NetCoreAppMinVersion>
<NetCoreAppMinTargetFramework>net$(NetCoreAppMinVersion)</NetCoreAppMinTargetFramework>
<!--
The TFM our unit tests run as. The tools must remain on $(NetCoreAppMinTargetFramework),
but the tests run on the SDK version from global.json, so they can target a newer TFM.
Keeping the tests on the live SDK's TFM means the SDK already ships the matching runtime,
so no extra shared runtime needs to be installed via global.json's tools.runtimes node.
-->
<NetCoreAppTestVersion>10.0</NetCoreAppTestVersion>
<NetCoreAppTestTargetFramework>net$(NetCoreAppTestVersion)</NetCoreAppTestTargetFramework>
<!-- This is the list of TFMs we build our debuggees and tracees as. -->
<SupportedSubProcessTargetFrameworks>net8.0;net9.0;net10.0;net11.0</SupportedSubProcessTargetFrameworks>
<!-- This is the list of TFMs we build our unit tests as. -->
<SupportedXUnitTestTargetFrameworks>$(NetCoreAppTestTargetFramework)</SupportedXUnitTestTargetFrameworks>
</PropertyGroup>
</Project>