解决方案项目无法加载

时间:2018-01-04 15:50:38

标签: c# xml visual-studio

我有数据库项目,直到我们将Visual Studio从VS2015迁移到VS2017。现在一个项目未能加载,我无法理解为什么? 一切都安装了需要使用报告的东西。不同的报告项目运作良好。

您可以看到解决方案中的最后一个项目未加载 enter image description here

然后我尝试重装它我得到了 C:\ xxx \ xxx \ xxx \ xxx \ xxx \ xxx \ xxx.rptproj:错误:XML文档中存在错误(2,2)。

Project xml看起来像 enter image description here

寻找解决方案或提示如何加载项目? PS。在具有VS2017项目工作的不同机器上,两者都具有源代码控制相同的版本

2 个答案:

答案 0 :(得分:5)

找到解决方案: 首先创建空报表项目并在行

中更改
<Project xmlns:xsi="http://schemas.microsoft.com/developer/msbuild/2003">

<Project xmlns:xsi="http://schemas.microsoft.com/developer/msbuild/2003-instance" xmlns:xsd="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="15.0">

然后点击重新加载解决方案并进行处理。

感谢您帮助解决问题,特别是jdweng给出的想法

答案 1 :(得分:2)

打开源文件夹并删除.rptproj.user文件。然后,在VS中重新加载项目。

相关问题