Visual Studio 2017 RC Core Console project does not compile

When I create a new console project enoty, it does not compile

I see that nuget packages are not being restored.

enter image description here

when i run dotnet restorei get error

microsoft.net.sdk \ 1.0.0-alpha-20161104-2 \ build \ Microsoft.NET.RuntimeIdentifierInference.targets (45.5): error: RuntimeIdentifier must be set for .NETFramework executables. Consider RuntimeIdentifier = win7-x86 or RuntimeIdentifier = win7-x64.

What am I missing?

+4
source share
1 answer

As suggested by @annemartijn, but then without s

<RuntimeIdentifier>win7-x64</RuntimeI‌​dentifier>

See the github question: https://github.com/dotnet/cli/issues/4619

.csproj:

<Project...
  <Import...
  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
    ...
    <RuntimeIdentifier>win7-x64</RuntimeI‌​dentifier>
  </PropertyGroup>
...
+7

Source: https://habr.com/ru/post/1662189/


All Articles