0
我從xproj升級的csproj和我不斷收到什麼是restore.dg文件?它的語法是什麼?
dotnet restore restore.dg
MSBUILD : error MSB1009: Project file does not exist.
Switch: restore.dg
,如果我的文件添加到我的項目目錄,然後它會說
C:\Git\XX\WebSite\restore.dg(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
C:\Git\XX\WebSite>dotnet restore restore.dg
C:\Git\XX\WebSite\restore.dg : error MSB4025: The project file could not be loaded. Root element is missing.
- 那麼,什麼是這個文件,它是爲了什麼?
- 應該包含什麼內容?
- 文檔在哪裏?
vs2017遷移者告訴我一切正常。當我刪除文件時,它無法找到項目。當且僅當我在網站項目的目錄中創建文件時,它會將錯誤更改爲我在原始文章中列出的其他內容。我的融合只是打開項目並讓它轉換。我不認爲這是不確定的。主線索 - 問題:爲什麼vs2017爲dotnetcore安裝最新的SDK,因爲我沒有單獨安裝它? – doker
在VS 2017中,是否安裝SDK取決於您選擇的工作負載。 您可以通過打開Visual Studio安裝程序來檢查是否安裝了哪個版本,然後在「Invididual Components」下檢查相應的Visual Studio安裝。 – imps
@doker我更新了我的答案,並提供了手動項目移植的步驟 – Dmitry