File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net45;netstandard1.3</TargetFrameworks >
5- <NetStandardImplicitPackageVersion >1.6.0</NetStandardImplicitPackageVersion >
4+ <TargetFrameworks >net45;netstandard1.3;netstandard2.0</TargetFrameworks >
65 <GenerateDocumentationFile >True</GenerateDocumentationFile >
76 </PropertyGroup >
87
1817 <Company />
1918 <Product >BencodeNET</Product >
2019 <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 >
2221 <PackageProjectUrl >https://github.com/Krusen/BencodeNET</PackageProjectUrl >
2322 <PackageIconUrl >https://raw.githubusercontent.com/Krusen/BencodeNET/master/Assets/icon.png</PackageIconUrl >
2423 <RepositoryUrl >https://github.com/Krusen/BencodeNET</RepositoryUrl >
3029 <IncludeSymbols >True</IncludeSymbols >
3130 </PropertyGroup >
3231
33- <PropertyGroup Condition =" '$(TargetFramework)' == 'netstandard1.3' " >
34- <DefineConstants >$(DefineConstants);NETSTANDARD</DefineConstants >
35- </PropertyGroup >
36-
3732 <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" />
4036 </ItemGroup >
4137
4238</Project >
Original file line number Diff line number Diff line change 33using System . Linq ;
44using System . Text ;
55
6- #if NETSTANDARD
6+ #if NETSTANDARD1_3
77using System ;
88using System . Reflection ;
99#endif
@@ -37,7 +37,7 @@ public static IEnumerable<T> Flatten<T>(this IEnumerable<IEnumerable<T>> source)
3737 return source . SelectMany ( x => x ) ;
3838 }
3939
40- #if NETSTANDARD
40+ #if NETSTANDARD1_3
4141 public static bool IsAssignableFrom ( this Type type , Type otherType )
4242 {
4343 return type . GetTypeInfo ( ) . IsAssignableFrom ( otherType . GetTypeInfo ( ) ) ;
You can’t perform that action at this time.
0 commit comments