当我安装Visual Studio 2017 RC时,我不能再构建使用.NET核心1.0.1的项目,所以它不像我们所希望的那样“并排”。安装Visual Studio 2017 RC打破dotnet核心1.0.1?
当我建立我得到这个错误:
D:\dev\app >dotnet build
Microsoft (R) Build Engine version 15.1.0.0
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 11/28/2016 10:35:13 AM.
1>Project "D:\dev\...\app.xproj" on node 1 (Build target(s)).
1>D:\dev\..\app.xproj(7,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\1.0.0-preview3-004056\Extensions\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.
1>Done Building Project "D:\dev\...\app.xproj" (Build target(s)) -- FAILED.
Build FAILED.
更新:我已经记录在评论一个解决办法,但如果有一种方式来获得两个preview3和preview2工具“肩并肩”上班这这个问题在问什么。
解决方法:重命名文件夹C:\ Program Files文件\ dotnet \ sdk \ 1.0.0-preview-3通过在其前面放置波浪线或美元符号,只留下preview2工具文件夹。解决方法的意图是让预览2工具功能正常,即使2017RC提供了一套损坏的工具。 –
替代解决方法可能是去add-remove-programs并找到dotnet preview3工具项并将其删除,这可能具有大致相同的效果。 –
由于最终结果将是预览版SDK,我认为这将是一个暂时的“已知问题”,无法解决。另一个解决方法是运行'dotnet migrate'完全切换到预览3. –