Skip to content

Commit 5bc298f

Browse files
Add new reference packages required by vstest (#688)
* Add new reference packages required by vstest * Manual edits
1 parent 1c8ee93 commit 5bc298f

23 files changed

+4751
-0
lines changed

eng/Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\NuGet.Packaging.6.6.0.csproj" />
6060
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\NuGet.Protocol.6.6.0.csproj" />
6161
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\NuGet.Credentials.6.6.0.csproj" />
62+
63+
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\Microsoft.Bcl.AsyncInterfaces.1.0.0.csproj" />
64+
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\System.Runtime.CompilerServices.Unsafe.4.6.0.csproj" />
65+
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\System.Text.Encodings.Web.4.6.0.csproj" />
66+
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\System.Text.Json.4.6.0.csproj" />
67+
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\Microsoft.Extensions.DependencyModel.3.0.0.csproj" />
6268
</ItemGroup>
6369

6470
<ItemGroup Condition="'$(BuildDependencyPackageProjects)' == 'true'">
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
5+
<AssemblyName>Microsoft.Bcl.AsyncInterfaces</AssemblyName>
6+
<ProjectTemplateVersion>2</ProjectTemplateVersion>
7+
<StrongNameKeyId>Open</StrongNameKeyId>
8+
</PropertyGroup>
9+
10+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
11+
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.2" />
12+
</ItemGroup>
13+
14+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
15+
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.2" />
16+
</ItemGroup>
17+
18+
</Project>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata minClientVersion="2.12">
4+
<id>Microsoft.Bcl.AsyncInterfaces</id>
5+
<version>1.0.0</version>
6+
<title>Microsoft.Bcl.AsyncInterfaces</title>
7+
<authors>Microsoft</authors>
8+
<owners>microsoft,dotnetframework</owners>
9+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10+
<licenseUrl>https://github.com/dotnet/corefx/blob/master/LICENSE.TXT</licenseUrl>
11+
<projectUrl>https://github.com/dotnet/corefx</projectUrl>
12+
<iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl>
13+
<description>Provides the IAsyncEnumerable&lt;T&gt; and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0.
14+
15+
Commonly Used Types:
16+
System.IAsyncDisposable
17+
System.Collections.Generic.IAsyncEnumerable
18+
System.Collections.Generic.IAsyncEnumerator
19+
20+
When using NuGet 3.x this package requires at least version 3.4.</description>
21+
<releaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</releaseNotes>
22+
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
23+
<serviceable>true</serviceable>
24+
<dependencies>
25+
<group targetFramework=".NETStandard2.0">
26+
<dependency id="System.Threading.Tasks.Extensions" version="4.5.2" />
27+
</group>
28+
<group targetFramework=".NETStandard2.1">
29+
<dependency id="System.Threading.Tasks.Extensions" version="4.5.2" />
30+
</group>
31+
</dependencies>
32+
</metadata>
33+
</package>
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
// ------------------------------------------------------------------------------
5+
// Changes to this file must follow the http://aka.ms/api-review process.
6+
// ------------------------------------------------------------------------------
7+
[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)]
8+
[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)]
9+
[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
10+
[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Bcl.AsyncInterfaces")]
11+
[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")]
12+
[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")]
13+
[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")]
14+
[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")]
15+
[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
16+
[assembly: System.Reflection.AssemblyDescription("Microsoft.Bcl.AsyncInterfaces")]
17+
[assembly: System.Reflection.AssemblyFileVersion("4.700.19.46214")]
18+
[assembly: System.Reflection.AssemblyInformationalVersion("3.0.0+4ac4c0367003fe3973a3648eb0715ddb0e3bbcea")]
19+
[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET Core")]
20+
[assembly: System.Reflection.AssemblyTitle("Microsoft.Bcl.AsyncInterfaces")]
21+
[assembly: System.Runtime.CompilerServices.ReferenceAssembly]
22+
[assembly: System.CLSCompliant(true)]
23+
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
24+
[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)]
25+
namespace System
26+
{
27+
public partial interface IAsyncDisposable
28+
{
29+
Threading.Tasks.ValueTask DisposeAsync();
30+
}
31+
}
32+
33+
namespace System.Collections.Generic
34+
{
35+
public partial interface IAsyncEnumerable<out T>
36+
{
37+
IAsyncEnumerator<T> GetAsyncEnumerator(Threading.CancellationToken cancellationToken = default);
38+
}
39+
40+
public partial interface IAsyncEnumerator<out T> : IAsyncDisposable
41+
{
42+
T Current { get; }
43+
44+
Threading.Tasks.ValueTask<bool> MoveNextAsync();
45+
}
46+
}
47+
48+
namespace System.Runtime.CompilerServices
49+
{
50+
public partial struct AsyncIteratorMethodBuilder
51+
{
52+
private object _dummy;
53+
private int _dummyPrimitive;
54+
public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine)
55+
where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine { }
56+
57+
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine)
58+
where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine { }
59+
60+
public void Complete() { }
61+
62+
public static AsyncIteratorMethodBuilder Create() { throw null; }
63+
64+
public void MoveNext<TStateMachine>(ref TStateMachine stateMachine)
65+
where TStateMachine : IAsyncStateMachine { }
66+
}
67+
68+
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
69+
public sealed partial class AsyncIteratorStateMachineAttribute : StateMachineAttribute
70+
{
71+
public AsyncIteratorStateMachineAttribute(Type stateMachineType) : base(default!) { }
72+
}
73+
74+
public readonly partial struct ConfiguredAsyncDisposable
75+
{
76+
private readonly object _dummy;
77+
private readonly int _dummyPrimitive;
78+
public readonly ConfiguredValueTaskAwaitable DisposeAsync() { throw null; }
79+
}
80+
81+
public readonly partial struct ConfiguredCancelableAsyncEnumerable<T>
82+
{
83+
private readonly object _dummy;
84+
private readonly int _dummyPrimitive;
85+
public readonly ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(bool continueOnCapturedContext) { throw null; }
86+
87+
public readonly ConfiguredCancelableAsyncEnumerable<T>.Enumerator GetAsyncEnumerator() { throw null; }
88+
89+
public readonly ConfiguredCancelableAsyncEnumerable<T> WithCancellation(Threading.CancellationToken cancellationToken) { throw null; }
90+
91+
public readonly partial struct Enumerator
92+
{
93+
private readonly object _dummy;
94+
private readonly int _dummyPrimitive;
95+
public T Current { get { throw null; } }
96+
97+
public readonly ConfiguredValueTaskAwaitable DisposeAsync() { throw null; }
98+
99+
public readonly ConfiguredValueTaskAwaitable<bool> MoveNextAsync() { throw null; }
100+
}
101+
}
102+
103+
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
104+
public sealed partial class EnumeratorCancellationAttribute : Attribute
105+
{
106+
}
107+
}
108+
109+
namespace System.Threading.Tasks
110+
{
111+
public static partial class TaskAsyncEnumerableExtensions
112+
{
113+
public static Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this IAsyncDisposable source, bool continueOnCapturedContext) { throw null; }
114+
115+
public static Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; }
116+
117+
public static Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this Collections.Generic.IAsyncEnumerable<T> source, CancellationToken cancellationToken) { throw null; }
118+
}
119+
}
120+
121+
namespace System.Threading.Tasks.Sources
122+
{
123+
public partial struct ManualResetValueTaskSourceCore<TResult>
124+
{
125+
private TResult _result;
126+
private object _dummy;
127+
private int _dummyPrimitive;
128+
public bool RunContinuationsAsynchronously { get { throw null; } set { } }
129+
130+
public short Version { get { throw null; } }
131+
132+
public TResult GetResult(short token) { throw null; }
133+
134+
public ValueTaskSourceStatus GetStatus(short token) { throw null; }
135+
136+
public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags) { }
137+
138+
public void Reset() { }
139+
140+
public void SetException(Exception error) { }
141+
142+
public void SetResult(TResult result) { }
143+
}
144+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
// ------------------------------------------------------------------------------
5+
// Changes to this file must follow the http://aka.ms/api-review process.
6+
// ------------------------------------------------------------------------------
7+
[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)]
8+
[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)]
9+
[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
10+
[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Bcl.AsyncInterfaces")]
11+
[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")]
12+
[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")]
13+
[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")]
14+
[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")]
15+
[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
16+
[assembly: System.Reflection.AssemblyDescription("Microsoft.Bcl.AsyncInterfaces")]
17+
[assembly: System.Reflection.AssemblyFileVersion("4.700.19.46214")]
18+
[assembly: System.Reflection.AssemblyInformationalVersion("3.0.0+4ac4c0367003fe3973a3648eb0715ddb0e3bbcea")]
19+
[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET Core")]
20+
[assembly: System.Reflection.AssemblyTitle("Microsoft.Bcl.AsyncInterfaces")]
21+
[assembly: System.Runtime.CompilerServices.ReferenceAssembly]
22+
[assembly: System.CLSCompliant(true)]
23+
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
24+
[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)]
25+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IAsyncEnumerable<>))]
26+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IAsyncEnumerator<>))]
27+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IAsyncDisposable))]
28+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.AsyncIteratorMethodBuilder))]
29+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.AsyncIteratorStateMachineAttribute))]
30+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.ConfiguredAsyncDisposable))]
31+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<>))]
32+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.EnumeratorCancellationAttribute))]
33+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore<>))]
34+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskAsyncEnumerableExtensions))]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard1.3;netstandard1.6;netstandard2.0</TargetFrameworks>
5+
<AssemblyName>Microsoft.Extensions.DependencyModel</AssemblyName>
6+
<ProjectTemplateVersion>2</ProjectTemplateVersion>
7+
<StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
8+
</PropertyGroup>
9+
10+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.3'">
11+
<!-- Manually updated version from 9.0.1 to address https://github.com/advisories/GHSA-5crp-9r3c-p9vr -->
12+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
13+
<PackageReference Include="System.AppContext" Version="4.1.0" />
14+
<PackageReference Include="System.Diagnostics.Debug" Version="4.0.11" />
15+
<PackageReference Include="System.Dynamic.Runtime" Version="4.0.11" />
16+
<PackageReference Include="System.IO.FileSystem" Version="4.0.1" />
17+
<PackageReference Include="System.Linq" Version="4.1.0" />
18+
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.0.0" />
19+
</ItemGroup>
20+
21+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.6'">
22+
<!-- Manually updated version from 9.0.1 to address https://github.com/advisories/GHSA-5crp-9r3c-p9vr -->
23+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
24+
<PackageReference Include="System.AppContext" Version="4.1.0" />
25+
<PackageReference Include="System.Diagnostics.Debug" Version="4.0.11" />
26+
<PackageReference Include="System.Dynamic.Runtime" Version="4.0.11" />
27+
<PackageReference Include="System.IO.FileSystem" Version="4.0.1" />
28+
<PackageReference Include="System.Linq" Version="4.1.0" />
29+
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.0.0" />
30+
</ItemGroup>
31+
32+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
33+
<PackageReference Include="System.Text.Json" Version="4.6.0" />
34+
</ItemGroup>
35+
36+
</Project>

0 commit comments

Comments
 (0)