简体   繁体   中英

vb.net publishing file location

I'm using vs2010 pro and I've created a project and everything works fine. I have added a help file (.chm) to the project and set its properties to "content" and "output if newer".

My project resides on my C: drive in a folder; for example c:\\myproject\\whatever

When I publish my project, I publish it to a different location (on the network) 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. So my app can't find my .chm file after I publish it. 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. 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'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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