【问题标题】:VS2017 is not recognizing that I installed .NET Core 2.0 Preview 1 on m machineVS2017 无法识别我在 m 机器上安装了 .NET Core 2.0 Preview 1
【发布时间】:2017-10-10 14:11:48
【问题描述】:

我在我的 Windows 机器上下载并安装了以下内容: https://github.com/dotnet/cli

如果我在命令行中输入:

dotnet --version

我看到以下内容:2.0.0-preview2-005905

我如何在 Visual Studio 2017 中实际使用它?模板仍然创建 1.1 应用程序。如何确保 2.0.0 是我的工作运行时?

我在其中一个项目中更改了以下内容:

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>

从 1.1 到 2.0

我不断收到 Unable to resolve 'Microsoft.NETCore.App (>=2.0.0)' for '.NETCoreApp,Version=v2.0'

【问题讨论】:

    标签: asp.net asp.net-core visual-studio-2017 dotnet-cli


    【解决方案1】:

    您需要安装 VS 2017 的预览版才能使其正常工作。它不适用于您现有的 VS 2017 版本。

    Announcing Net Core 2 Preview

    VS 2017 Preview

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-29
    • 2020-01-20
    • 1970-01-01
    • 1970-01-01
    • 2018-06-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多