简体   繁体   中英

NET Core install runtime

In .NET Core rc-1 I can install many different runtimes and manage them with dnvm util. In NET Core 1.0 there is no dnvm , so the only way to install runtime - download installation packages from microsoft website ? It is very confusing.

So I now can't install different versions of .NET runtime (maybe use some previous version). How can I update runtime when new versions will be available? Can I download and install previous versions?

With .NET Core 1.0 you can install multiple SDK and runtime versions side-by-side on your system. In RC1, you could specify which runtime version would be used with the dnvm use command. This is now down with a global.json file in your project folder instead (See global.json reference ).

Example global.json file specifying SDK version 1.0.0-preview2-003156 :

{
  "sdk": {
    "version": "1.0.0-preview2-003156"
  }
}

Running any of the new dotnet commands from a folder where a global.json file is present in that folder (or any parent directory of that folder) will cause the SDK version specified in that file to be used to execute the dotnet command. Each SDK version that you install also installs one of the runtime versions with it. The version that is actually used by your application is defined in your project.json file (or your .csproj file if you're using the preview3 or preview4 tools).

If you want to install other runtime versions that are not packaged with the most recent versions of the tools, Microsoft is keeping an archive list of older SDK and runtime downloads in their GitHub repository .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM