Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which version of coreclr?

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 ?

like image 363
Marcus Avatar asked Dec 18 '22 17:12

Marcus


1 Answers

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": {}
  }
}
like image 163
Mike Avatar answered Dec 29 '22 00:12

Mike