2
我做出了改變,以一個已知的工作項目,現在有dotnet build
建設時,我得到如下:DOTNET編譯產生的NullReferenceException
λ dotnet build
Object reference not set to an instance of an object.
的變化是增加一個新的框架,到frameworks
部分,這在已經工作過去。我不知道爲什麼它突然停止工作。
我做出了改變,以一個已知的工作項目,現在有dotnet build
建設時,我得到如下:DOTNET編譯產生的NullReferenceException
λ dotnet build
Object reference not set to an instance of an object.
的變化是增加一個新的框架,到frameworks
部分,這在已經工作過去。我不知道爲什麼它突然停止工作。
這是在dotnet CLI中已知的bug。如果您向project.json
添加新框架但不運行dotnet restore
,則會發生這種情況。
首先恢復修復該問題:
λ dotnet restore
log : Restore completed in 2138ms.
λ dotnet build
Compilation succeeded.
0 Warning(s)
0 Error(s)