NOTE: I have seen this error in other posts, but the problem is that the main solution I've seen, to explicitly define the framework instead of using the default, doesn't work.
My project has 1.0.0-beta6 defined as the version in global.json, and as far as I can tell it's not using anything that doesn't support beta6. I've tried compiling the project with the frameworks "dnxcore50" and "dotnet" and neither works (my preference is dotnet for compatibility but I'd use either).
Here's my project.json:
{
"version": "1.0.0-*",
"description": "Cormaran Class Library",
"authors": [ "Me" ],
"tags": [ "" ],
"projectUrl": "",
"licenseUrl": "",
"dependencies": {
"Microsoft.CSharp": "4.0.0-beta-23019",
"System.Net.Sockets": "4.0.10-beta-23123",
"System.Text.Encoding": "4.0.10-beta-23019",
"Newtonsoft.Json": "7.0.1",
"System.Collections": "4.0.11-beta-23225"
},
"frameworks": {
"dnxcore50": {
}
}
}
And here's my global.json:
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-beta6",
"runtime": "clr",
"architecture": "x86"
}
}
Now, this may not be static (but it might be helpful) so I'm putting the project's github here for reference (if you make any statements based on it, I'll add the code here in case anybody else has this problem).
https://github.com/ThePlatinumTaco/Cormaran/tree/master/src/