Skip to content

Commit cdef1c7

Browse files
authored
Merge pull request #748 from dotnet/depUpdates
Bump VSThreading dependency to 17.10.48, System.IO.Pipelines to 8.0.0
2 parents 5662925 + 7916543 commit cdef1c7

File tree

9 files changed

+18
-4
lines changed

9 files changed

+18
-4
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ updates:
1111
directory: /
1212
schedule:
1313
interval: weekly
14+
ignore:
15+
- dependency-name: Microsoft.Bcl.AsyncInterfaces # We want to match the minimum target .NET runtime

Directory.Packages.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
77
<BenchmarkDotNetVersion>0.13.12</BenchmarkDotNetVersion>
88
<AspNetCoreVersion>2.2.0</AspNetCoreVersion>
9-
<VSThreadingVersion>17.8.14</VSThreadingVersion>
9+
<VSThreadingVersion>17.10.48</VSThreadingVersion>
1010
</PropertyGroup>
1111
<ItemGroup>
1212
<PackageVersion Include="BenchmarkDotNet.Diagnostics.Windows" Version="$(BenchmarkDotNetVersion)" />
1313
<PackageVersion Include="BenchmarkDotNet" Version="$(BenchmarkDotNetVersion)" />
1414
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="$(AspNetCoreVersion)" />
1515
<PackageVersion Include="Microsoft.AspNetCore" Version="$(AspNetCoreVersion)" />
16-
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
16+
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="6.0.0" />
1717
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" />
1818
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
1919
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="$(VSThreadingVersion)" />
@@ -23,7 +23,7 @@
2323
<PackageVersion Include="NSubstitute.Analyzers.CSharp" Version="1.0.16" />
2424
<PackageVersion Include="PInvoke.Kernel32" Version="0.7.124" />
2525
<PackageVersion Include="StreamJsonRpc" Version="2.16.36" />
26-
<PackageVersion Include="System.IO.Pipelines" Version="7.0.0" />
26+
<PackageVersion Include="System.IO.Pipelines" Version="8.0.0" />
2727
<PackageVersion Include="System.IO.Pipes" Version="4.3.0" />
2828
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
2929
<PackageVersion Include="xunit.abstractions" Version="2.0.3" />

src/Nerdbank.Streams/MultiplexingStream.Channel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) Andrew Arnott. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4+
#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks -- We always use .ConfigureAwait(false).
5+
46
namespace Nerdbank.Streams
57
{
68
using System;

src/Nerdbank.Streams/MultiplexingStream.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) Andrew Arnott. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4+
#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks -- We always use .ConfigureAwait(false).
5+
46
namespace Nerdbank.Streams
57
{
68
using System;

src/Nerdbank.Streams/Nerdbank.Streams.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" PrivateAssets="all" />
1616
<PackageReference Include="Microsoft.VisualStudio.Validation" />
1717
<PackageReference Include="System.IO.Pipelines" />
18-
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Condition="'$(TargetFramework)' != 'net6.0'" />
18+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
1919
</ItemGroup>
2020
<ItemGroup>
2121
<Compile Update="Strings.Designer.cs">

src/Nerdbank.Streams/ReadOnlySequenceStream.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public override Task<int> ReadAsync(byte[] buffer, int offset, int count, Cancel
8686
return TaskOfZero;
8787
}
8888

89+
#pragma warning disable VSTHRD103 // Call async methods when in an async method - This task is guaranteed to already be complete.
8990
if (this.lastReadTask?.Result == bytesRead)
9091
{
9192
return this.lastReadTask;
@@ -94,6 +95,7 @@ public override Task<int> ReadAsync(byte[] buffer, int offset, int count, Cancel
9495
{
9596
return this.lastReadTask = Task.FromResult(bytesRead);
9697
}
98+
#pragma warning restore VSTHRD103 // Call async methods when in an async method
9799
}
98100

99101
/// <inheritdoc/>

src/Nerdbank.Streams/SpanPolyfillExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
#pragma warning disable AvoidAsyncSuffix // Avoid Async suffix
5+
#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks -- We always use .ConfigureAwait(false).
6+
57
#if !SPAN_BUILTIN
68

79
namespace Nerdbank.Streams

test/Nerdbank.Streams.Interop.Tests/Nerdbank.Streams.Interop.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14+
<!-- Temporarily upgrade Microsoft.Bcl.AsyncInterfaces while we reference StreamJsonRpc that wants 7.0.0 -->
15+
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" VersionOverride="7.0.0" />
1416
<PackageReference Include="Microsoft.VisualStudio.Threading" />
1517
</ItemGroup>
1618

test/Nerdbank.Streams.Tests/Nerdbank.Streams.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<ItemGroup>
2020
<PackageReference Include="Microsoft.AspNetCore" />
2121
<PackageReference Include="Microsoft.AspNetCore.TestHost" />
22+
<!-- Temporarily upgrade Microsoft.Bcl.AsyncInterfaces while we reference StreamJsonRpc that wants 7.0.0 -->
23+
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" VersionOverride="7.0.0" />
2224
<PackageReference Include="Microsoft.NET.Test.Sdk" />
2325
<PackageReference Include="Microsoft.VisualStudio.Threading" />
2426
<PackageReference Include="NSubstitute" />

0 commit comments

Comments
 (0)