Mar*_*cus 4 .net coreclr asp.net-core
在.NET CLI中,我可以使用该开关--version来获取CLI的版本.是否有类似的方式来获得该版本coreclr?
没有了dnvm.
coreclr的版本在您的project.json文件中确定.
安装dotnet cli时还有一个共享运行时.你可以在dotnet cli文件夹中找到它.
如果您的应用程序尚未指定任何运行时,project.json那么您的应用程序是可移植的,并将使用共享运行时运行.您可以指定多个运行时,并且将分别为所有这些运行时编译应用程序二进制文件.
更新:
添加指向.NET Platform Standard文档的链接,该文档描述了在.NET中设计API的新方法
链接到David Fowl的GitHub 存储库,描述.NET平台标准
这是一个指定运行时的示例
{
"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": {}
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
824 次 |
| 最近记录: |