Steps to reproduce
- Create a .Net Core class library in VS
- Go to commandline
- dotnet restore
- dotnet build
- dotnet publish
Expected behavior
dotnet publish infers the runtime (in the default case)
Actual behavior
Can not find runtime target for framework '.NETStandard,Version=v1.6' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:
- The project has not been restored or restore failed - run
dotnet restore
- The project does not list one of 'win10-x64, win81-x64, win8-x64, win7-x64' in the 'runtimes' section.
- You may be trying to publish a library, which is not supported. Use
dotnet pack to distribute libraries.
Environment data
dotnet --info output:
C:\git\ClassLibrary1\src\ClassLibrary1>dotnet --info
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
Steps to reproduce
Expected behavior
dotnet publish infers the runtime (in the default case)
Actual behavior
Can not find runtime target for framework '.NETStandard,Version=v1.6' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:
dotnet restoredotnet packto distribute libraries.Environment data
dotnet --infooutput:C:\git\ClassLibrary1\src\ClassLibrary1>dotnet --info
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64