如何告诉VS10一键部署复制某些文件和文件夹

发布于 2024-09-30 14:46:56 字数 136 浏览 0 评论 0原文

我正在尝试使用 VS10 中的 Web 一键发布功能将我的 asp.net 应用程序推送到 IIS。我有一些 .resx 文件和另一个用于上传图像的文件夹,但这些文件都没有复制到 IIS。我如何告诉它复制指定的文件和文件夹

非常感谢, 射线。

I'm trying to use the Web One Click Publish feature in VS10 to push my asp.net app to IIS. I have some .resx files and another folder for uploaded images, none of these got copied to IIS. How do I tell it to copy the specified files and folders

Thank you so much,
Ray.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

楠木可依 2024-10-07 14:46:57

您是否检查过以确保 .resx 文件的属性将“复制到输出目录”设置为始终复制

alt text


更新:我很抱歉没有仔细阅读您的问题。

根据此链接 http://msdn.microsoft.com/en-us/ library/dd434211.aspx,您应该检查要部署的项目下拉列表,并确保设置了以下两个选项之一:

此项目中的所有文件。< /strong> 项目中包含的所有文件都将部署到目标服务器。项目文件夹中但未包含在项目中的文件将被排除。

此项目文件夹中的所有文件。项目文件夹中的所有文件都会部署到目标服务器,即使它们已从项目中排除。

替代文本

Have you checked to make sure that the properties of the .resx files have "Copy to Output Directory" set to Copy Always?

alt text


UPDATE: I apologize for not reading your question closely enough.

According to this link http://msdn.microsoft.com/en-us/library/dd434211.aspx, you should check the Items to Deploy drop down list and make sure you have one of the following two options set:

All files in this project. All files included in the project are deployed to the destination server. Files that are in the project folder but are not included in the project are excluded.

or

All files in this project folder. All files in the project folder are deployed to the destination server, even if they are excluded from the project.

alt text

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文