简体   繁体   English

NET Core安装运行时

[英]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.

相关问题 如何使用 wix 中的 .NET Core Runtime 先决条件安装网络核心应用程序 - How to install a net core application with .NET Core Runtime prerequisite from wix 是否可以在同一个 ASP.NET 运行时容器中安装不同的 ASP.NET Core 框架? - Is it possible to install different ASP.NET Core Frameworks in the same ASP.NET runtime container? 对于需要使用“ .NET Core版本2+”创建的软件,需要“上线”运行,是否有任何理由在目标“下线” OS上安装.NET Core Runtime? - For software created with .NET Core Version 2+, that needs to go “live”, is there any reason to install the .NET Core Runtime on the target “live” OS? .NET Core 1.1和运行时本地化 - .NET core 1.1 and localization in runtime .NET Core Runtime向后兼容性 - .NET Core Runtime backward compatibility 是否可以为 dotnet 核心运行时安装 DotNet 核心 CLI? - Is it possible to install DotNet core CLI for dotnet core runtime? 无法发布.NET Core应用程序(不受支持的运行时) - Unable to publish .NET Core app (unsupported runtime) 在运行时关闭 .NET Core EF LoggerFactory - Turn off .NET Core EF LoggerFactory at runtime ASP .Net Core在运行时改变路由 - ASP .Net Core changing route on runtime AWS Lambda和.NET Core-使用Linux运行时吗? - AWS Lambda and .NET Core - Using a Linux Runtime?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM