[英]Unable to open vs2015 .net core 1.1 project after installing vs2017
[英]How to open .xproj file in VS2017/2015
我有一個擴展名為.xproj
的.NET核心項目。 當我在VS 2017中打開項目時,項目文件.xproj migrated to .csproj
。
如何打開.xproj文件Visual Studio 2017/2015?
我需要安裝任何工具嗎?
當我嘗試在VS2015中打開xproj時。 它給出錯誤"C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
導入的項目"C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
"C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
我需要安裝任何工具嗎?
如前所述,不建議使用project.json和.xproj,Microsoft不再支持。 VS 2017可以遷移在VS 2017中創建的解決方案,就像從命令行運行dotnet migrate
。
通過在解決方案目錄中創建global.json
文件並將sdk-> version的值設置為已安裝的Preview2 cli的版本,可以在VS 2015(僅2015)中繼續使用project.json / xproj。完全符合該版本的文件夾必須存在於C:\\Program Files\\dotnet\\sdk
,否則您將收到錯誤消息Microsoft.DotNet.Props was not found
)。 參見https://github.com/dotnet/cli/blob/rel/1.0.1/Documentation/ProjectJsonToCSProj.md#how-do-i-work-with-projectjson-and-csproj-on-the-same-machine更多細節。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.