Visual Studio 2017 RC Core Console项目无法编译

Boa*_*ler 4 c# .net-core visual-studio-2017

当我创建一个新的enoty核心控制台项目时,它不会编译

我可以看到nuget包没有恢复.

在此输入图像描述

当我跑dotnet restore我得到错误

microsoft.net.sdk\1.0.0-alpha-20161104-2\build\Microsoft.NET.RuntimeIdentifierInference.targets(45,5):错误:必须为.NETFramework可执行文件设置RuntimeIdentifier.考虑RuntimeIdentifier = win7-x86或RuntimeIdentifier = win7-x64.

我错过了什么?

Lak*_*eld 7

正如@annemartijn所建议的那样,但是没有s

<RuntimeIdentifier>win7-x64</RuntimeI??dentifier>

请参阅github上的问题:https://github.com/dotnet/cli/issues/4619

在.csproj文件中插入运行时标识符段:

<Project...
  <Import...
  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
    ...
    <RuntimeIdentifier>win7-x64</RuntimeI??dentifier>
  </PropertyGroup>
...
Run Code Online (Sandbox Code Playgroud)