Reputation: 199
Just adding a new Class Library (.net Core ) project to my solution generate two errors:
Error NU1002 The dependency xxx.Web.Services 1.0.0 in project xxx.Web.Services does not support framework DNX,Version=v4.5.1.
Error NU1008 "netstandard1.5" is an unsupported framework.
project.json file content:
{
"version" : "1.0.0-*",
"dependencies" : {
"NETStandard.Library" : "1.5.0-rc2-24027"
},
"frameworks" : {
"netstandard1.5" : {
"imports" : "dnxcore50"
}
}
}
Project.lock.json file content:
{
"locked" : false,
"version" : 2,
"targets" : {
"DNX,Version=v4.5.1" : {
"NETStandard.Library/1.5.0-rc2-24027" : {
"type" : "package"
}
},
"DNX,Version=v4.5.1/win7-x86" : {
"NETStandard.Library/1.5.0-rc2-24027" : {
"type" : "package"
}
},
"DNX,Version=v4.5.1/win7-x64" : {
"NETStandard.Library/1.5.0-rc2-24027" : {
"type" : "package"
}
}
},
"libraries" : {
"NETStandard.Library/1.5.0-rc2-24027" : {
"type" : "package",
"sha512" : "SD27bvP2gNnlpC7HZUbnPOXS1M7VbBZoi0bdlqe5tj7weJQ2EyGDGw8mi7K1yUmeqjL6jPWBLSC28TDaLnyqwA==",
"files" : ["dotnet_library_license.txt", "NETStandard.Library.1.5.0-rc2-24027.nupkg", "NETStandard.Library.1.5.0-rc2-24027.nupkg.sha512", "NETStandard.Library.nuspec", "ThirdPartyNotices.txt"]
}
},
"projectFileDependencyGroups" : {
"" : ["NETStandard.Library >= 1.5.0-rc2-24027"]
}
}
Upvotes: 5
Views: 1494
Reputation: 36
You need to change version in global.json (Solution items).
example:
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-preview1-002702"
}
}
also, probably need to change
\DNX\Microsoft.DNX.Props –> \DotNet\Microsoft.DotNet.Props
\DNX\Microsoft.DNX.targets –> \DotNet.Web\Microsoft.DotNet.Web.targets
in your xproj file.
Best solution (not project), would be to create brand new solution and see how it's all done there.
Upvotes: 2
Reputation: 64288
You need to install .NET Core RC2 Tools for Visual Studio 2015 in order to use RC2.
You can find Instructions on the Microsoft .NET Core Website.
Upvotes: 0