[英]NET Core install runtime
In .NET Core rc-1 I can install many different runtimes and manage them with dnvm
util. 在.NET Core rc-1中,我可以安装许多不同的运行时并使用
dnvm
util对其进行管理。 In NET Core 1.0 there is no dnvm
, so the only way to install runtime - download installation packages from microsoft website ? 在NET Core 1.0中没有
dnvm
,因此安装运行时的唯一方法是从Microsoft网站下载安装包? It is very confusing. 这很令人困惑。
So I now can't install different versions of .NET runtime (maybe use some previous version). 因此,我现在无法安装不同版本的.NET运行时(也许使用某些以前的版本)。 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. 使用.NET Core 1.0,您可以在系统上并排安装多个SDK和运行时版本。 In RC1, you could specify which runtime version would be used with the
dnvm use
command. 在RC1中,您可以指定
dnvm use
命令使用哪个运行时版本。 This is now down with a global.json
file in your project folder instead (See global.json reference ). 现在,这已关闭,在项目文件夹中带有
global.json
文件(请参阅global.json参考 )。
Example global.json
file specifying SDK version 1.0.0-preview2-003156
: 指定SDK版本
1.0.0-preview2-003156
示例global.json
文件:
{
"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. 从该文件夹(或该文件夹的任何父目录)中存在
global.json
文件的文件夹中运行任何新的dotnet
命令,将导致该文件中指定的SDK版本用于执行dotnet
命令。 Each SDK version that you install also installs one of the runtime versions with it. 您安装的每个SDK版本也将同时安装其中一个运行时版本。 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). 您的应用程序实际使用的版本在
project.json
文件(如果使用Preview3或Preview4工具,则为.csproj
文件)中定义。
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 . 如果要安装未随工具的最新版本打包的其他运行时版本,Microsoft将在其GitHub存储库中保留较旧的SDK和运行时下载的存档列表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.