在.net web应用程序中发布rdlc文件?
我们有一个网站,使用 rdlc 文件来显示一些报告,但是当我在 Visual Studio 中发布该网站时,这些文件不包含在内。
如何将这些文件添加到出版物中?
将这些 rdlc 文件复制到出版物安全吗?
谢谢
We have a web site that uses rdlc files to show some reports, but when I publish the website within visual studio these files are not included.
how do I add these files to the publication?
is copying these rdlc files to the publication secure?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当我包含 .rdlc 文件时,它们在发布期间也不会输出。
要解决此问题,请单击该文件并在属性窗口中查看。
在“构建操作”下,我的项目具有“嵌入式资源”设置。
将此设置更改为“内容”为我解决了这个问题。
When I included my .rdlc files they would not output during a publish as well.
To solve this click on the file and look in the properties window.
Under 'Build Action' my project had the setting of 'Embedded Resource'.
Changing this setting to 'Content' fixed this issue for me.
我也遇到了同样的事情,这太奇怪了,因为其中一些已发布,有些则没有,即使它们是同一个项目的一部分。
我的解决方案是简单地将 rdlc 文件复制到已发布的文件夹中,它就可以按预期工作。
I had the same thing happen to me, it was too strange since SOME of them were published and some weren't, even though they are part of the same project.
My solution was to simply copy the rdlc files over to the published folder and it works as expected.