Closed
Description
Steps to reproduce
Create a new project/exe that uses the netcoreapp1.0 framework.
Add a dependency "Microsoft.NETCore.App":"1.0.0-rc2-24015"
Expected behavior
A better error saying that the type needs to be a platform. The entry should be
"Microsoft.NETCore.App": {
"version": "1.0.0-rc2-24015",
"type": "platform"
}
And that fixes the error correctly.
Actual behavior
Errors that suggest putting in RID's
Severity Code Description Project File Line Suppression State
Error Can not find runtime target for framework '.NETCoreApp,Version=v1.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes: Dapper.Tests C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets 241
Error 1. The project has not been restored or restore failed - run `dotnet restore` Dapper.Tests C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets 241
Error 2. The project does not list one of 'win10-x64, win81-x64, win8-x64, win7-x64' in the 'runtimes' section. Dapper.Tests C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets 241
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-rc2-002418)
Product Information:
Version: 1.0.0-rc2-002418
Commit Sha: a8686e5
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14316
OS Platform: Windows
RID: win10-x64
Metadata
Metadata
Assignees
Labels
No labels