我的解决方案有两个项目.一个是我的实际项目,另一个是安装项目.我的实际项目有一个报告文件夹,我存储了我的所有ssrs report.i在安装项目中有一个名为"SSRS_Repor"的文件夹.现在我想要当我将批量生成然后设置为我的项目重新生成然后我想将我的实际项目的报告文件夹中的所有文件复制到我的安装项目中的SSRS_Repor.如果我能做到这种自动化将文件从一个位置复制到我的安装项目的另一个文件夹,那么我可以摆脱手动复制rdls文件.我很难通过设置/部署项目来实现这一点.我搜索谷歌这个细节一步一步的指示,但没有很好的链接.所以请指导我如何做到这一点.
我也把它发布到另一个论坛,有人在下面告诉我
Open or create a setup/deployment project in Visual Studio 2005
Press F4 to display the Properties window
Click on the name of your setup/deployment project in the Solution Explorer
Click on the PostBuildEvent item in the Properties window to cause a button labeled "..." to appear
Click on the "..." button to display the Post-build Event Command Line dialog
Add a command line of your choice in the Post-build event command line text box
Build your project …Run Code Online (Sandbox Code Playgroud) visual-studio-2010 setup-deployment visual-studio pre-build-event