Chapt 2: Targeting Frameworks.
Just wondering how you got it to target both .NetCore and 4.6.
I chose "Console Application (.Net Core)" as the project type.
And ".Net Framework 4.6.1" was selected as the Framework.
Funny how you need to select a framework for a .Net Core app, but the framework type seems to be ignored.
At any rate, this is the project.json it creates:
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
},
"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
}
}
So when I compile it only creates the .Net Core version in the bin directory.
No 4.6 version.
I guess I would have to manually add that framework into the json file?
|