When I create a new enoty core console project it doesn't compile
I can see that the nuget packages are not restored.
when i run dotnet restore
i get the 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?
As suggested by @annemartijn, but then without the s
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
See issue on github: https://github.com/dotnet/cli/issues/4619
Insert the runtime identifier segment in your .csproj file:
<Project...
<Import...
<PropertyGroup>
<TargetFramework>net461</TargetFramework>
...
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
</PropertyGroup>
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With