Skip to content

Commit 2a13b38

Browse files
committed
Use package references for .NET Standard 1.0 and 1.3.
Remove extra Compile include and removes.
1 parent 4e65de9 commit 2a13b38

File tree

1 file changed

+5
-28
lines changed

1 file changed

+5
-28
lines changed

src/SshNet.Security.Cryptography.NETStandard/SshNet.Security.Cryptography.NETStandard.csproj

+5-28
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,12 @@
77
<SignAssembly>true</SignAssembly>
88
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
99
</PropertyGroup>
10-
<ItemGroup>
11-
<Compile Include="..\SshNet.Security.Cryptography.Shared\**\*.cs" />
10+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' ">
11+
<PackageReference Include="System.IO" Version="4.3.0" />
1212
</ItemGroup>
13-
<ItemGroup>
14-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\HashAlgorithm.cs" />
15-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\HashProviderBase.cs" />
16-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\HMAC.cs" />
17-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\HMACMD5.cs" />
18-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\HMACRIPEMD160.cs" />
19-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\HMACSHA1.cs" />
20-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\HMACSHA256.cs" />
21-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\HMACSHA384.cs" />
22-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\HMACSHA512.cs" />
23-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\IHashProvider.cs" />
24-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\KeyedHashAlgorithm.cs" />
25-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\MD5.cs" />
26-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\MD5HashProvider.cs" />
27-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\Properties\CommonAssemblyInfo.cs" />
28-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\RIPEMD160.cs" />
29-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\RIPEMD160HashProvider.cs" />
30-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\SHA1.cs" />
31-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\SHA1HashProvider.cs" />
32-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\SHA256.cs" />
33-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\SHA256HashProvider.cs" />
34-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\SHA2HashProviderBase.cs" />
35-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\SHA384.cs" />
36-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\SHA384HashProvider.cs" />
37-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\SHA512.cs" />
38-
<Compile Remove="..\SshNet.Security.Cryptography.Shared\SHA512HashProvider.cs" />
13+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
14+
<PackageReference Include="System.IO" Version="4.3.0" />
15+
<PackageReference Include="System.Security.Cryptography.Primitives" Version="4.3.0" />
3916
</ItemGroup>
4017
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
4118
<DefineConstants>$(DefineConstants);FEATURE_CRYPTO_HASHALGORITHM</DefineConstants>

0 commit comments

Comments
 (0)