I installed the recently released Visual Studio 2017 and created a standard .NET library project.
.cprojjust aimed at .NET Standard v1.4:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
</PropertyGroup>
</Project>
Visual Studio states that it successfully references the NETStandard.Library metapackage.
Inside this library project, I have a simple class that uses a type System.Threading.Tasks.Task.
using System;
using System.Threading.Tasks;
namespace ClassLibrary1
{
public class Class1
{
public Class1(Action action)
{
var task1 = Task.Run(action);
}
}
}
During the build in Visual Studio, it checks for compatibility with .NETStandard 1.4 with DLL files found in nuget packages, however these DLL files are not copied to the output folder.
Compatibility check for System.Threading 4.3.0 with .NETStandard, Version = v1.4.
1 > System.Threading.Tasks/4.3.0 1 >
Name = System.Threading.Tasks 1 >
Path = system.threading.tasks/4.3.0 1 >
ResolvedPath = C:\Users\ \.nuget\\system.threading.tasks\4.3.0 1 > = 1 > = 4.3.0
dll (ClassLibrary1.dll), 2 : System.Runtime.dll System.Threading.Tasks.dll.
DLL GAC:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Runtime.dll
C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Threading.Tasks.dll
Full.NET Framework 4.6.1586.0, Windows GAC.
: ?. .NET Standard, , ClassLibrary1.dll netstandard.dll, nuget System.Runtime.dll System.Threading.Tasks.dll. / dll-s ClassLibrary1.dll.