-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Description
Adding a reference to System.Linq.AsyncEnumerable (from System.Linq.Async) results in the following error.
1>C:\Users\baldrich\source\Lib-git\lib\AdminUtil.cs(74,20,74,75): error CS0012: The type '(, )' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ValueTuple, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
My project targets .net 472 and that specific ValueTuple package has no matching dll (by design). The ValueTuple was built into framework 471 and later.
Please provide an additional target framework of net471 so nuget will resolve and use that instead of the 462 build.
Reproduction Steps
Make a new project and target .net 472.
Add a reference to this System.Linq.AsyncEnumerable and ValueTuple.
Add any class/method with a links/reference to the Index() extension method.
testLinqAsyncAndValueTuple.zip
Expected behavior
Compilation.
Actual behavior
Compile error (and somewhat vague, but accurate none-the-less).
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response