File tree 2 files changed +7
-11
lines changed
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net45;netstandard1.3</TargetFrameworks >
5
- <NetStandardImplicitPackageVersion >1.6.0</NetStandardImplicitPackageVersion >
4
+ <TargetFrameworks >net45;netstandard1.3;netstandard2.0</TargetFrameworks >
6
5
<GenerateDocumentationFile >True</GenerateDocumentationFile >
7
6
</PropertyGroup >
8
7
18
17
<Company />
19
18
<Product >BencodeNET</Product >
20
19
<Description >A library for encoding and decoding bencode (e.g. torrent files)</Description >
21
- <PackageLicenseUrl >https://github.com/Krusen/BencodeNET/blob/master/LICENSE.md</ PackageLicenseUrl >
20
+ <PackageLicenseExpression >Unlicense</ PackageLicenseExpression >
22
21
<PackageProjectUrl >https://github.com/Krusen/BencodeNET</PackageProjectUrl >
23
22
<PackageIconUrl >https://raw.githubusercontent.com/Krusen/BencodeNET/master/Assets/icon.png</PackageIconUrl >
24
23
<RepositoryUrl >https://github.com/Krusen/BencodeNET</RepositoryUrl >
30
29
<IncludeSymbols >True</IncludeSymbols >
31
30
</PropertyGroup >
32
31
33
- <PropertyGroup Condition =" '$(TargetFramework)' == 'netstandard1.3' " >
34
- <DefineConstants >$(DefineConstants);NETSTANDARD</DefineConstants >
35
- </PropertyGroup >
36
-
37
32
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard1.3' " >
38
- <PackageReference Include =" System.Reflection" Version =" 4.1.0" />
39
- <PackageReference Include =" System.Security.Cryptography.Algorithms" Version =" 4.2.0" />
33
+ <PackageReference Update =" NETStandard.Library" PrivateAssets =" all" />
34
+ <PackageReference Include =" System.Reflection" Version =" 4.3.0" />
35
+ <PackageReference Include =" System.Security.Cryptography.Algorithms" Version =" 4.3.0" />
40
36
</ItemGroup >
41
37
42
38
</Project >
Original file line number Diff line number Diff line change 3
3
using System . Linq ;
4
4
using System . Text ;
5
5
6
- #if NETSTANDARD
6
+ #if NETSTANDARD1_3
7
7
using System ;
8
8
using System . Reflection ;
9
9
#endif
@@ -37,7 +37,7 @@ public static IEnumerable<T> Flatten<T>(this IEnumerable<IEnumerable<T>> source)
37
37
return source . SelectMany ( x => x ) ;
38
38
}
39
39
40
- #if NETSTANDARD
40
+ #if NETSTANDARD1_3
41
41
public static bool IsAssignableFrom ( this Type type , Type otherType )
42
42
{
43
43
return type . GetTypeInfo ( ) . IsAssignableFrom ( otherType . GetTypeInfo ( ) ) ;
You can’t perform that action at this time.
0 commit comments