我有一个用VS2015
开发的解决方案文件,它有大约20个项目文件。当我们用VS2017
打开文件时出现一个提示:“不支持报表服务器项目的版本,并且必须升级项目”。我们选择升级项目并提交更改,解决方案/项目现在正在VS2017
中工作。
当我使用VS2015
并使用版本控制到Update Solution to Latest Version
时,将检索该文件,但项目文件无法正确加载; “解决方案中的一个或多个项目未正确加载。请参阅输出窗口以获取更多详细信息”。输出时为每个项目都有一条消息说:“XML文档中存在错误(2,2)。”。我试图右键单击项目和Reload Project
,但它给出了相同的XML文档(2,2)错误消息。当我使用版本控制到Update Solution to Specific Version (and choose the prior working version)
时,项目文件仍然说“(不可用)”但是当我选择Reload Project
时,项目然后正确加载。
我想知道如何修复VS2015中的文件。然后最终我想做这项工作,以便VS2017和VS2015都可以更改解决方案文件(Projects .RPTPROJ,Datasource .RDS,Report .RDL等)。
完整错误消息
C:\ Users \ myUser \ Documents \ Visual Studio 2015 \ Projects \ SSRS \ Project_ssrs2016 \ Transportation \ Transportation.rptproj:错误:XML文档中存在错误(2,2)。
(编辑)的
我大约1年前尝试过使用VS 2017。它工作正常大约一个星期,然后有一天程序突然无法启动给我错误消息:“程序包管理初始化失败:访问被拒绝。”据SO上的人说,VS 2017是一个非常常见的错误,但它可能已在新版本中得到修复:(Package management initialization failed: Access Denied Error when opening Visual Studio 2017)
我的一些同事使用VS2017,但他们并没有将它用于太多的东西。
--Mine
Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3
---------------------------------------------
--Collegue 1 (did the SSRS Project upgrade)
Microsoft Visual Studio Professional 2017
Version 15.5.6
--Colleage 2 (also uses VS2015, but in the future will probably start using VS2017 more frequently)
Microsoft Visual Studio Professional 2017
Version 15.7.1
|--VS Extension-- || VS2015 || VS2015 updated || VS2017 (upgraded SSRS) |
| Data Tools || 14.0.61021.0 || 14.0.61707.300 || 15.1.61710.120 |
| Analysis Services || 13.0.1701.8 || 14.0.806.134 || 14.0.1016.244 |
| Integration Services || 13.0.1601.5 || 14.0.800.90 || 14.0.3002.92 |
| Reporting Services || 13.0.1701.8 || 14.0.806.134 || 14.0.1016.233 |
VS2015 ORIG
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ToolsVersion="2.0">
<State>$base64$PFNvdXJjZUNvbnRyb2xJbmZvIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOmRkbDI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yIiB4bWxuczpkZGwyXzI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yLzIiIHhtbG5zOmRkbDEwMF8xMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDA4L2VuZ2luZS8xMDAvMTAwIiB4bWxuczpkZGwyMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAiIHhtbG5zOmRkbDIwMF8yMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAvMjAwIiB4bWxuczpkZGwzMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDExL2VuZ2luZS8zMDAiIHhtbG5zOmRkbDMwMF8zMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDExL2VuZ2luZS8zMDAvMzAwIiB4bWxuczpkZGw0MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEyL2VuZ2luZS80MDAiIHhtbG5zOmRkbDQwMF80MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEyL2VuZ2luZS80MDAvNDAwIiB4bWxuczpkZGw1MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEzL2VuZ2luZS81MDAiIHhtbG5zOmRkbDUwMF81MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEzL2VuZ2luZS81MDAvNTAwIiB4bWxuczpkd2Q9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vRGF0YVdhcmVob3VzZS9EZXNpZ25lci8xLjAiPg0KICA8RW5hYmxlZD5mYWxzZTwvRW5hYmxlZD4NCiAgPFByb2plY3ROYW1lPjwvUHJvamVjdE5hbWU+DQogIDxBdXhQYXRoPjwvQXV4UGF0aD4NCiAgPExvY2FsUGF0aD48L0xvY2FsUGF0aD4NCiAgPFByb3ZpZGVyPjwvUHJvdmlkZXI+DQo8L1NvdXJjZUNvbnRyb2xJbmZvPg==</State>
<DataSources>
<ProjectItem>
<Name>Gmenu.rds</Name>
<FullPath>Gmenu.rds</FullPath>
</ProjectItem>
</DataSources>
<DataSets>
<ProjectItem>
<Name>listWarehouse.rsd</Name>
<FullPath>listWarehouse.rsd</FullPath>
</ProjectItem>
</DataSets>
<Reports>
<ProjectItem>
<Name>Daily Yum Products Daily Traffic Report.rdl</Name>
<FullPath>Daily Yum Products Daily Traffic Report.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Load Comment Report.rdl</Name>
<FullPath>Load Comment Report.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Load Planning Worksheet.rdl</Name>
<FullPath>Load Planning Worksheet.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Loads Under Utilized Exceptions.rdl</Name>
<FullPath>Loads Under Utilized Exceptions.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Orders for Load Building.rdl</Name>
<FullPath>Orders for Load Building.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Transportation Order History.rdl</Name>
<FullPath>Transportation Order History.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Weekly Loads Shipped Detail.rdl</Name>
<FullPath>Weekly Loads Shipped Detail.rdl</FullPath>
</ProjectItem>
<ProjectItem>
<Name>Weekly Yum Products Daily Traffic Report.rdl</Name>
<FullPath>Weekly Yum Products Daily Traffic Report.rdl</FullPath>
</ProjectItem>
</Reports>
<Configurations>
<Configuration>
<Name>Debug</Name>
<Platform>Win32</Platform>
<Options>
<OutputPath>bin\Debug</OutputPath>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<TargetServerURL>http://gcod049/ReportServer</TargetServerURL>
<TargetFolder>/Transportation</TargetFolder>
<TargetDataSourceFolder>/Data Sources/01-DEV</TargetDataSourceFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
</Options>
</Configuration>
<Configuration>
<Name>DebugLocal</Name>
<Platform>Win32</Platform>
<Options>
<OutputPath>bin\DebugLocal</OutputPath>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<TargetServerURL>http://localhost/reportserver</TargetServerURL>
<TargetFolder>Transportation</TargetFolder>
<TargetDataSourceFolder>Data Sources</TargetDataSourceFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
</Options>
</Configuration>
<Configuration>
<Name>Release</Name>
<Platform>Win32</Platform>
<Options>
<OutputPath>bin\Release</OutputPath>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<TargetServerURL>http://localhost/reportserver</TargetServerURL>
<TargetFolder>Transportation</TargetFolder>
<TargetDataSourceFolder>Data Sources</TargetDataSourceFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
</Options>
</Configuration>
</Configurations>
</Project>
VS2017升级
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<FullPath>Debug</FullPath>
<OutputPath>bin\Debug</OutputPath>
<ErrorLevel>2</ErrorLevel>
<OverwriteDatasets>False</OverwriteDatasets>
<OverwriteDataSources>False</OverwriteDataSources>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<Platform>Win32</Platform>
<TargetReportFolder>/Transportation</TargetReportFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetDatasourceFolder>/Data Sources/01-DEV</TargetDatasourceFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
<TargetServerURL>http://gcod049/ReportServer</TargetServerURL>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'DebugLocal' ">
<FullPath>DebugLocal</FullPath>
<OutputPath>bin\DebugLocal</OutputPath>
<ErrorLevel>2</ErrorLevel>
<OverwriteDatasets>False</OverwriteDatasets>
<OverwriteDataSources>False</OverwriteDataSources>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<Platform>Win32</Platform>
<TargetReportFolder>Transportation</TargetReportFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetDatasourceFolder>Data Sources</TargetDatasourceFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
<TargetServerURL>http://localhost/reportserver</TargetServerURL>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<FullPath>Release</FullPath>
<OutputPath>bin\Release</OutputPath>
<ErrorLevel>2</ErrorLevel>
<OverwriteDatasets>False</OverwriteDatasets>
<OverwriteDataSources>False</OverwriteDataSources>
<TargetServerVersion>SSRS2016</TargetServerVersion>
<Platform>Win32</Platform>
<TargetReportFolder>Transportation</TargetReportFolder>
<TargetDatasetFolder>Datasets</TargetDatasetFolder>
<TargetDatasourceFolder>Data Sources</TargetDatasourceFolder>
<TargetReportPartFolder>Report Parts</TargetReportPartFolder>
<TargetServerURL>http://localhost/reportserver</TargetServerURL>
</PropertyGroup>
<PropertyGroup>
<State>$base64$PFNvdXJjZUNvbnRyb2xJbmZvIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOmRkbDI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yIiB4bWxuczpkZGwyXzI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yLzIiIHhtbG5zOmRkbDEwMF8xMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDA4L2VuZ2luZS8xMDAvMTAwIiB4bWxuczpkZGwyMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAiIHhtbG5zOmRkbDIwMF8yMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAvMjAwIiB4bWxuczpkZGwzMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDExL2VuZ2luZS8zMDAiIHhtbG5zOmRkbDMwMF8zMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDExL2VuZ2luZS8zMDAvMzAwIiB4bWxuczpkZGw0MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEyL2VuZ2luZS80MDAiIHhtbG5zOmRkbDQwMF80MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEyL2VuZ2luZS80MDAvNDAwIiB4bWxuczpkZGw1MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEzL2VuZ2luZS81MDAiIHhtbG5zOmRkbDUwMF81MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEzL2VuZ2luZS81MDAvNTAwIiB4bWxuczpkd2Q9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vRGF0YVdhcmVob3VzZS9EZXNpZ25lci8xLjAiPg0KICA8RW5hYmxlZD5mYWxzZTwvRW5hYmxlZD4NCiAgPFByb2plY3ROYW1lPjwvUHJvamVjdE5hbWU+DQogIDxBdXhQYXRoPjwvQXV4UGF0aD4NCiAgPExvY2FsUGF0aD48L0xvY2FsUGF0aD4NCiAgPFByb3ZpZGVyPjwvUHJvdmlkZXI+DQo8L1NvdXJjZUNvbnRyb2xJbmZvPg==</State>
<DataSources>@(DataSource)</DataSources>
<DataSets>@(DataSet)</DataSets>
<Reports>@(Report)</Reports>
</PropertyGroup>
<ItemGroup>
<DataSet Include="listWarehouse.rsd" />
</ItemGroup>
<ItemGroup>
<DataSource Include="Gmenu.rds" />
</ItemGroup>
<ItemGroup>
<Report Include="Daily Yum Products Daily Traffic Report.rdl" />
<Report Include="Load Comment Report.rdl" />
<Report Include="Load Planning Worksheet.rdl" />
<Report Include="Loads Under Utilized Exceptions.rdl" />
<Report Include="Orders for Load Building.rdl" />
<Report Include="Transportation Order History.rdl" />
<Report Include="Weekly Loads Shipped Detail.rdl" />
<Report Include="Weekly Yum Products Daily Traffic Report.rdl" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Reporting Services\Microsoft.ReportingServices.MSBuilder.targets" />
</Project>
答案
我想知道如何修复VS2015中的文件:
如果您可以检索旧的2015 .RPTPROJ项目文件(来自源代码管理)并覆盖新的2017项目文件,那么其余文件将起作用。例如 - AnkhSvn undo/revert a commit。
_
最后,我想做这项工作,以便VS2017和VS2015都可以更改解决方案文件(Projects .RPTPROJ,Datasource .RDS,Report .RDL等):
由于在我的问题帖子中看到的项目文件XLM结构差异,因此无法在VSRS中使用VS2015和VS2017进行团队开发(我能说得最好)。我们选择恢复VS2015格式,让我们的团队参与2015版VS和SSDT。我经历过VS2017(Package management initialization failed: Access Denied Error when opening Visual Studio 2017)的一些严重错误,所以我们暂时放弃升级。
问题似乎出现在以前版本的Visual Studio中遗留的.suo和.csproj.user文件中。删除这些文件,然后在VS2017中成功加载SSRS项目。
您可以在Visual Studio中打开解决方案并删除其中的.rptproj。然后再将现有的.rptproj添加到您的解决方案中。