forked from dotnet/linker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.Build.props
40 lines (38 loc) · 2.31 KB
/
Directory.Build.props
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
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
<Import Project="eng/Analyzers.props" />
<PropertyGroup>
<!-- Don't produce ref assemblies by default. -->
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<IsReferenceAssembly Condition="'$(IsReferenceAssembly)' == '' and '$([System.IO.Path]::GetFileName($(MSBuildProjectDirectory)))' == 'ref'">true</IsReferenceAssembly>
<DisableImplicitNamespaceImports_DotNet>true</DisableImplicitNamespaceImports_DotNet>
<!-- The TFM for the product (linker, task,.. not analyzer, which is netstandard) -->
<NetCoreAppToolCurrent>$(NetCurrent)</NetCoreAppToolCurrent>
<!-- The TFM for all the tests - intentionally different since tests may depend on new framework APIs in order to validate
linker interaction with them, linker itself doesn't need the new framework typically. -->
<NetCoreAppTestsCurrent>$(NetCurrent)</NetCoreAppTestsCurrent>
</PropertyGroup>
<PropertyGroup Condition=" '$(IsReferenceAssembly)' == 'true' ">
<ProduceOnlyReferenceAssembly>true</ProduceOnlyReferenceAssembly>
<!-- Used by Arcade to compute OutputPath, IntermediateOutputPath, etc. early in the import chain. -->
<OutDirName>$(MSBuildProjectName)/ref</OutDirName>
<!-- Don't try to publish PDBs for ref assemblies that have none. -->
<PublishWindowsPdb>false</PublishWindowsPdb>
<RunApiCompat>false</RunApiCompat>
</PropertyGroup>
<PropertyGroup>
<IsPackable>false</IsPackable>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/dotnet/linker</RepositoryUrl>
<_ToolsProjectTargets>$(ArtifactsToolsetDir)Common\Tools.proj.nuget.g.targets</_ToolsProjectTargets>
<!-- Set this to true to build against the package instead of the submodule. -->
<UseCecilPackage Condition="'$(UseCecilPackage)' == ''">false</UseCecilPackage>
<!-- No symbols are produced for ref assemblies, but some parts of the SDK still expect pdbs, so we explicitly tell it there are none. -->
<!-- Must be set after importing Arcade to override its defaults. -->
<DebugType Condition=" '$(IsReferenceAssembly)' == 'true' ">none</DebugType>
</PropertyGroup>
<PropertyGroup>
<LangVersion>preview</LangVersion>
<AnalysisLevel>latest</AnalysisLevel>
</PropertyGroup>
</Project>