Visual Studio SSRS RDL 文件在打开时创建新文件(备份)
Visual Studio SSRS RDL Files creating a new file (backup) when opened
在 VS 中,我有一个包含 SSRS 项目的解决方案文件。在项目中有 8 个 RDL 文件。我在打开一个以星号 (*) 打开的文件时遇到问题,在关闭 window 时提示我保存文件。然后我转到 Windows 资源管理器中的文件夹,这时我注意到每次打开文件时 Visual Studio 都在创建新文件 -- <%FileName%>
、<%FileName%- Backup>
、<%FileName%- Backup (#)>
、<....>
。
这很奇怪。更奇怪的是,自动文件仅为项目中的 4 个 RDL 文件创建(总共 8 个文件)。四个文件总是在创建新的备份文件;四个文件正常运行。
Does anyone know what is causing the files to automatically create
backups?
我检查了 VS 文件属性(没什么可看的:文件名和位置)。我还检查了文件资源管理器属性(它不是只读的)。我的项目文件夹 TargetServerVersion 是 SQL Server 2016 or later
。 RDL 文件是从 2008 SSRS 报表服务器下载的。在找到这个 SO 线程 () 之后,我比较了所有 RPT 文件的标签。
Problem files... (all say 2010)
* Daily Yum Products Daily Traffic Report.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* Load Planning Worksheet.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* Temporary Employees.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* Weekly Yum Products Daily Traffic Report.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
Working files... (some 2008, some 2016)
* BoJangles Data Export.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* Load Comment Report.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* OnBase Upload_AP Invoice Validation.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* ScannedProduction.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
Problem files (BACKUP COPY CREATED)...
* Daily Yum Products Daily Traffic Report.rdl
<Report xmlns> all look the same as the original problem file
其他参考资料:
我读到了这个 SO 问题,但它是关于项目文件而不是 RDL 文件的:visual studio keeps asking to save project file as。
这是文件资源管理器和 VS 项目 RDL 的屏幕截图。
======================
更新:我什至尝试删除并重新添加文件。同样的 4 个文件问题仍然存在;其他 4 个文件仍然可以正常工作。这些文件在版本控制中,所以我尝试了这个... delete files/ commit/ re-add the files/ commit/ tested opening the file/ Backup file auto created (still)
.
正在删除不断要求我保存的 RDL 文件...
Move these files
FROM HERE...
C:\Users\myUser\Documents\Visual Studio 2015\Projects\SSRS\Project_ssrs2016\Decommissioned-2\
TO HERE...
C:\Users\myUser\Downloads\Decommissioned-2 (backup)\
DELETED FILES FROM PROJECT
* Daily Yum Products Daily Traffic Report.rdl
* Load Planning Worksheet.rdl
* Temporary Employees.rdl
* Weekly Yum Products Daily Traffic Report.rdl
正在重新添加不断要求我保存的 RDL 文件...
Move these files
FROM HERE...
C:\Users\myUser\Downloads\Decommissioned-2 (backup)\
TO HERE...
C:\Users\myUser\Documents\Visual Studio 2015\Projects\SSRS\Project_ssrs2016\Decommissioned-2\
ADDED FILES TO PROJECT
* Daily Yum Products Daily Traffic Report.rdl
* Load Planning Worksheet.rdl
* Temporary Employees.rdl
* Weekly Yum Products Daily Traffic Report.rdl
===========================
通过编辑 2010 年至 2016 年报告 XML 架构中所有问题文件的 RDL 文件标签,最终解决了这个问题。我做了如下操作:(in VS) > right-click report > View Code > Paste the 2016 > Save
.
1) Daily Yum Products Daily Traffic Report.rdl
ORIGINAL
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
NEW
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
2) Repeated for all problem files with 2010 schema
3) Repeated for all problem files with 2010 schema
4) Repeated for all problem files with 2010 schema
* Auto Save issue is resolved.
我认为导致创建备份文件的原因与 Visual Studio 检测到项目 TargetServerVersion 和 RDL XML 架构中的冲突有关。不确定为什么 2008 文件有效而 2010 无效;不管我让 2008 年保持原样。
这些 SO 帖子有一些有用的答案。
Back UP file RDLs Creation in SSRS 2008 Automatically
在 VS 中,我有一个包含 SSRS 项目的解决方案文件。在项目中有 8 个 RDL 文件。我在打开一个以星号 (*) 打开的文件时遇到问题,在关闭 window 时提示我保存文件。然后我转到 Windows 资源管理器中的文件夹,这时我注意到每次打开文件时 Visual Studio 都在创建新文件 -- <%FileName%>
、<%FileName%- Backup>
、<%FileName%- Backup (#)>
、<....>
。
这很奇怪。更奇怪的是,自动文件仅为项目中的 4 个 RDL 文件创建(总共 8 个文件)。四个文件总是在创建新的备份文件;四个文件正常运行。
Does anyone know what is causing the files to automatically create backups?
我检查了 VS 文件属性(没什么可看的:文件名和位置)。我还检查了文件资源管理器属性(它不是只读的)。我的项目文件夹 TargetServerVersion 是 SQL Server 2016 or later
。 RDL 文件是从 2008 SSRS 报表服务器下载的。在找到这个 SO 线程 (
Problem files... (all say 2010)
* Daily Yum Products Daily Traffic Report.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* Load Planning Worksheet.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* Temporary Employees.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* Weekly Yum Products Daily Traffic Report.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
Working files... (some 2008, some 2016)
* BoJangles Data Export.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* Load Comment Report.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* OnBase Upload_AP Invoice Validation.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
* ScannedProduction.rdl
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
Problem files (BACKUP COPY CREATED)...
* Daily Yum Products Daily Traffic Report.rdl
<Report xmlns> all look the same as the original problem file
其他参考资料:
我读到了这个 SO 问题,但它是关于项目文件而不是 RDL 文件的:visual studio keeps asking to save project file as。
这是文件资源管理器和 VS 项目 RDL 的屏幕截图。
======================
更新:我什至尝试删除并重新添加文件。同样的 4 个文件问题仍然存在;其他 4 个文件仍然可以正常工作。这些文件在版本控制中,所以我尝试了这个... delete files/ commit/ re-add the files/ commit/ tested opening the file/ Backup file auto created (still)
.
正在删除不断要求我保存的 RDL 文件...
Move these files
FROM HERE...
C:\Users\myUser\Documents\Visual Studio 2015\Projects\SSRS\Project_ssrs2016\Decommissioned-2\
TO HERE...
C:\Users\myUser\Downloads\Decommissioned-2 (backup)\
DELETED FILES FROM PROJECT
* Daily Yum Products Daily Traffic Report.rdl
* Load Planning Worksheet.rdl
* Temporary Employees.rdl
* Weekly Yum Products Daily Traffic Report.rdl
正在重新添加不断要求我保存的 RDL 文件...
Move these files
FROM HERE...
C:\Users\myUser\Downloads\Decommissioned-2 (backup)\
TO HERE...
C:\Users\myUser\Documents\Visual Studio 2015\Projects\SSRS\Project_ssrs2016\Decommissioned-2\
ADDED FILES TO PROJECT
* Daily Yum Products Daily Traffic Report.rdl
* Load Planning Worksheet.rdl
* Temporary Employees.rdl
* Weekly Yum Products Daily Traffic Report.rdl
===========================
通过编辑 2010 年至 2016 年报告 XML 架构中所有问题文件的 RDL 文件标签,最终解决了这个问题。我做了如下操作:(in VS) > right-click report > View Code > Paste the 2016 > Save
.
1) Daily Yum Products Daily Traffic Report.rdl
ORIGINAL
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
NEW
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
2) Repeated for all problem files with 2010 schema
3) Repeated for all problem files with 2010 schema
4) Repeated for all problem files with 2010 schema
* Auto Save issue is resolved.
我认为导致创建备份文件的原因与 Visual Studio 检测到项目 TargetServerVersion 和 RDL XML 架构中的冲突有关。不确定为什么 2008 文件有效而 2010 无效;不管我让 2008 年保持原样。
这些 SO 帖子有一些有用的答案。
Back UP file RDLs Creation in SSRS 2008 Automatically