Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Directory.Build.props - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4f3900653e4532a93d19b3f571b6f3602979a666 (plain)
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
<Project>
  <PropertyGroup>
    <MonoBuild Condition="'$(MonoBuild)' == '' and '$(SolutionName)' == 'monolinker'">true</MonoBuild>
  </PropertyGroup>

  <PropertyGroup>
    <IsReferenceAssembly Condition="'$(IsReferenceAssembly)' == '' and '$([System.IO.Path]::GetFileName($(MSBuildProjectDirectory)))' == 'ref'">true</IsReferenceAssembly>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(IsReferenceAssembly)' == 'true' ">
    <!-- Since .NET 5 reference assemblies are always produced -->
    <ProduceReferenceAssembly>false</ProduceReferenceAssembly>
    <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>

  <Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(MonoBuild)' == ''" />
  <!-- Still use global versions even if not using arcade. -->
  <Import Project="eng/Versions.props" Condition="'$(MonoBuild)' != ''" />
  <Import Project="eng/Analyzers.props" />
  <PropertyGroup>
    <IsPackable>false</IsPackable>
    <PackageLicenseExpression>MIT</PackageLicenseExpression>
    <_ToolsProjectTargets>$(ArtifactsToolsetDir)Common\Tools.proj.nuget.g.targets</_ToolsProjectTargets>
    <!-- Set this to false to build against the submodule. Convenient for experimenting locally. -->
    <UseCecilPackage Condition="'$(MonoBuild)' != '' And '$(UseCecilPackage)' == ''">false</UseCecilPackage>
    <UseCecilPackage Condition="'$(UseCecilPackage)' == ''">true</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>

</Project>