In the .NET CLI I can use the switch --version
to get the version of CLI. Is there a similar way to get the version of the coreclr
?
No more dnvm
.
The version of coreclr is determined in your project.json
file.
Also there is a shared runtime when you install dotnet cli. You can find it in dotnet cli folder.
If your applicaiton have not specified any runtime in project.json
then you app is portable and will run using shared runtime. You can specify multiple runtimes and your application binaries will be compiled for all this runtimes separately.
UPDATED:
Adding link to .NET Platform Standard documentation describing new way to design API in .NET
Link to David Fowl's GitHub repository describing .NET Platform Standard
Here is an example where runtimes are specified
{
"version": "1.0.0-*",
"compilationOptions": {
"warningsAsErrors": true,
"preserveCompilationContext": true,
"emitEntryPoint": true
},
"dependencies": {
...
},
"frameworks": {
"net451": {
"dependencies": {
....
}
},
"netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net45+win8"
],
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018",
"Microsoft.DotNet.ProjectModel": "1.0.0-rc2-002416"
}
}
},
"content": [
"config.json"
],
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8.2-x64": {}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With