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.
我错过了什么?
正如@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)
归档时间: |
|
查看次数: |
1368 次 |
最近记录: |