I ended up
- upgrading to the latest Visual Studio 2015 SP3,
running Scott Smith's upgrade command using powershell,
powershell dnvm upgrade -r coreclr
https://stackoverflow.com/a/34013990/80772
creating a console project anew from Visual Studio.
After adding more packages required to resolve the standard classes I observed this global.json,
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-preview2-003131"
}
}
and this project.json,
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.1"
},
"system.diagnostics.textwritertracelistener": "4.0.0-beta-23123",
"System.Diagnostics.TraceSource": "4.0.0",
"System.IO": "4.1.0"
},
"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
}
}