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