forked from jbevain/cecil
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Directory.Build.props
52 lines (52 loc) · 2.88 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
41
42
43
44
45
46
47
48
49
50
51
52
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
<PropertyGroup>
<!-- The TFM for the product -->
<ToolsFramework>netstandard2.0</ToolsFramework>
<!-- The TFM for the test projects -->
<NetCoreAppTestsCurrent>$(NetCurrent)</NetCoreAppTestsCurrent>
<EnableDefaultItems>false</EnableDefaultItems>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<IsPackable>false</IsPackable>
<IsShipping>false</IsShipping>
<SuppressLicenseValidation>true</SuppressLicenseValidation>
<Configurations>Debug;Release</Configurations>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<SignAssembly>true</SignAssembly>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\cecil.snk</AssemblyOriginatorKeyFile>
<DefineConstants>$(DefineConstants);NET_CORE</DefineConstants>
<RootNamespace></RootNamespace>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net40' ">
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net40' ">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.3" />
</ItemGroup>
<ItemGroup Condition="'$(MonoBuild)' != ''">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net40' ">
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
<PropertyGroup>
<CecilOverrides Condition="'$(CecilOverrides)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), Mono.Cecil.overrides))\Mono.Cecil.overrides</CecilOverrides>
</PropertyGroup>
<Import Project="$(CecilOverrides)" Condition="Exists('$(CecilOverrides)')" />
<PropertyGroup>
<!-- Work around
https://github.com/dotnet/arcade/issues/2321. This disables
arcade's selection of AssemblyOriginatorKeyFile based on the
StrongNameKeyId, since we want to use cecil's key file. -->
<StrongNameKeyId>CecilStrongNameKey</StrongNameKeyId>
<!-- PublicKey and PublicKeyToken are only consumed by arcade's
InternalsVisibleTo generator. We don't use this, but we set
these properties anyway to avoid hitting an arcade check. -->
<PublicKey>00240000048000009400000006020000002400005253413100040000010001002b5c9f7f04346c324a3176f8d3ee823bbf2d60efdbc35f86fd9e65ea3e6cd11bcdcba3a353e55133c8ac5c4caaba581b2c6dfff2cc2d0edc43959ddb86b973300a479a82419ef489c3225f1fe429a708507bd515835160e10bc743d20ca33ab9570cfd68d479fcf0bc797a763bec5d1000f0159ef619e709d915975e87beebaf</PublicKey>
<PublicKeyToken>50cebf1cceb9d05e</PublicKeyToken>
<NoWarn>$(NoWarn);0618</NoWarn>
</PropertyGroup>
</Project>