简体   繁体   English

vb.net发布文件位置

[英]vb.net publishing file location

I'm using vs2010 pro and I've created a project and everything works fine. 我正在使用vs2010 pro,并且已经创建了一个项目,并且一切正常。 I have added a help file (.chm) to the project and set its properties to "content" and "output if newer". 我已经在项目中添加了一个帮助文件(.chm),并将其属性设置为“内容”和“如果更新则输出”。

My project resides on my C: drive in a folder; 我的项目驻留在文件夹中的C:驱动器上; for example c:\\myproject\\whatever 例如c:\\ myproject \\ whatever

When I publish my project, I publish it to a different location (on the network) z:\\whatever 发布项目时,我将其发布到其他位置(在网络上)z:\\ whatever

The project gets published to that location and the application works fine except for the fact that the .chm file ends up in my c:\\myproject\\debug directory and not on the network path that I published to. 该项目将发布到该位置,并且该应用程序运行正常,除了.chm文件最终位于我的c:\\ myproject \\ debug目录中,而不是在我发布到的网络路径上。 So my app can't find my .chm file after I publish it. 因此,发布后,我的应用程序找不到我的.chm文件。 It can only find it when I hit the green arrow and build it locally. 仅当我按下绿色箭头并在本地构建时,它才能找到它。

How do I force it to put everything in the publish folder that I choose when publishing? 如何强制它将所有内容都放置在发布时选择的发布文件夹中?

Thanks. 谢谢。

I think the .chm is ending up in the debug directory for an unrelated reason. 我认为.chm由于不相关的原因而最终位于调试目录中。 Anyway, to get it into the publish location, look on the Publish tab of the Application Explorer window, and click the Application Files button. 无论如何,要使其进入发布位置,请在“应用程序资源管理器”窗口的“发布”选项卡上查找,然后单击“应用程序文件”按钮。 Locate your .chm file in the list and change its status to 'Include' 在列表中找到您的.chm文件,并将其状态更改为“包含”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM