.NET 核心运行时

.NET Core Runtime

如果我想创建 .NET Core 2.0 应用程序,例如控制台应用程序或 ASP.NET Core 2.0,我需要在我的开发机器上安装什么 .NET 运行 次?我在 Windows 10.

我创建了一个 .NET Core 2.0 控制台应用程序 运行 作为 WebJob。为了将其压缩并上传到 Azure,我遵循了这篇文章:https://docs.microsoft.com/en-us/dotnet/core/deploying/deploy-with-cli#self-contained-deployment-with-third-party-dependencies

当我 运行 dotnet publish --self-contained -r win32-x64 -c Release 时,我收到一条错误消息:

Microsoft.NETCore.App.targets(19,5): error : Project is targeting runtime 'win32-x64' but did not resolve any runtime-specific packages for the 'Microsoft.NETCore.App' package. This runtime may not be supported by .NET Core.

但是如果我 运行 dotnet publish --self-contained -r win10-x64 -c Release,它工作正常。

只是想确保我以正确的方式为 Azure 准备我的应用程序。

另外我想 运行 我的应用程序是 64 位,而不是 32 位。

win32-x64 不是有效的运行时标识符。请改用 win-x64 或查看 .NET Core RID Catalog 以获取有效运行时标识符列表。