[英]Visual Studio deploy report item during build
I am working on a project that uses Crystal Reports WPF, so I have a report file (.rpt) that is required for the application to run properly. 我正在开发一个使用Crystal Reports WPF的项目,因此我有一个应用程序正常运行所需的报告文件(.rpt)。 I am hoping that there is a way that I can set up visual studio to deploy this file to the bin whenever I do a build. 我希望有一种方法可以设置visual studio,以便在我进行构建时将此文件部署到bin。 I'd rather not have to set up a deployment project as an MSI seems kind of unnecessary for what this is. 我宁愿不必设置一个部署项目,因为MSI似乎没什么必要的。
Any thoughts are greatly appreciated! 任何想法都非常感谢!
尝试在解决方案资源管理器中选择.rpt文件,并将“ Copy to Output Directory
设置为Copy Always
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.