Skip to content

Commit 376ec03

Browse files
committed
Require Microsoft.Bcl.AsyncInterfaces >=1.0.0 instead of =8.0.0
This technically fixes 2 different issues: - previously SSH.NET would require exactly(!) version 8.0.0, which would cause issues in the future if e.g. a project using SSH.NET would try to update to version 9.0.0. In this case the constraint on the exact version would cause NuGet to refuse to upgrade to 9.0.0 (#1287) - PowerShell Core seems to have problems with Version 8.0.0, therefore downgrade the requirement to 1.0.0 (see darkoperator/Posh-SSH#558) I had to re-enable AutoGenerateBindingRedirects, otherwise there is a FileLoadException with net462 in one of the tests. I don't know why this was disabled in 3ecbd10 .
1 parent 7436a38 commit 376ec03

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Directory.Build.props

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<LangVersion>latest</LangVersion>
1212
<WarningLevel>9999</WarningLevel>
1313
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
14-
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
1514
</PropertyGroup>
1615

1716
<!--

build/nuget/SSH.NET.nuspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
<tags>ssh scp sftp</tags>
1818
<dependencies>
1919
<group targetFramework="net462">
20-
<dependency id="Microsoft.Bcl.AsyncInterfaces" version="[8.0.0]" />
20+
<dependency id="Microsoft.Bcl.AsyncInterfaces" version="1.0.0" />
2121
</group>
2222
<group targetFramework="netstandard2.0">
23-
<dependency id="Microsoft.Bcl.AsyncInterfaces" version="[8.0.0]" />
23+
<dependency id="Microsoft.Bcl.AsyncInterfaces" version="1.0.0" />
2424
<dependency id="SshNet.Security.Cryptography" version="[1.3.0]" />
2525
</group>
2626
<group targetFramework="netstandard2.1">

src/Renci.SshNet/Renci.SshNet.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0' ">
17-
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
17+
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" />
1818
</ItemGroup>
1919

2020
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net7.0' or '$(TargetFramework)' == 'net8.0' ">

0 commit comments

Comments
 (0)