gpt4 book ai didi

c# - Microsoft.DotNet.Common.Targets(262,5) : error : Object reference not set to an instance of an object

转载 作者:行者123 更新时间:2023-11-30 16:48:01 26 4
gpt4 key购买 nike

我正在将库从 .Net 4.5 迁移到 .net core。我已经有了 .xproj,但是当我运行 dotnet build 时,我得到了错误:

Microsoft.DotNet.Common.Targets(262,5): error : Obje ct reference not set to an instance of an object.

这是我的 project.json 文件:

{
"version": "1.0.0",

"frameworks": {
"net45": {
"frameworkAssemblies": {
"System.Collections.Concurrent": {
"type": "build"
}
}
},
"netstandard1.6": {
"imports": "dnxcore50",
"dependencies": {
"NETStandard.Library": "1.6.0"
}
}
}
}

有什么我想念的吗?

最佳答案

从命令行运行 dotnet restore 可以,但不能从 Visual Studio 2015 Update 3 运行。我怀疑这与私有(private) nuget 源有关。

关于c# - Microsoft.DotNet.Common.Targets(262,5) : error : Object reference not set to an instance of an object,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38623445/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com