forked from nblockchain/DotNetLightning.Kiss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
35 lines (30 loc) · 1.16 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
<Project>
<PropertyGroup>
<Deterministic>true</Deterministic>
<LangVersion>latest</LangVersion>
<NullableReferenceType>True</NullableReferenceType>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
</PropertyGroup>
<!-->Since NBitcoin.Secp256k1 does not support netstandard 2.0, we will fallback to BouncyCastle build<-->
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<BouncyCastle>True</BouncyCastle>
</PropertyGroup>
<Choose>
<When Condition="'$(BouncyCastle)'=='true'">
<PropertyGroup>
<OtherFlags>$(OtherFlags) -d:BouncyCastle</OtherFlags>
<DefineConstants>$(DefineConstants);BouncyCastle</DefineConstants>
</PropertyGroup>
</When>
</Choose>
<ItemGroup>
<PackageReference Include="NBitcoin" Version="5.0.65" />
<PackageReference Condition="'$(BouncyCastle)'=='true'" Include="Portable.BouncyCastle" Version="1.8.6.7" />
</ItemGroup>
<PropertyGroup>
<OtherFlags>$(OtherFlags) --warnon:1182</OtherFlags>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\LICENSE.txt" Pack="true" PackagePath="" Visible="false" />
</ItemGroup>
</Project>