[2005] Help with setup and deployment
Hi!
I have a question, in my Solution, I have added a setup and deployment project, and I have added the primary output as my winforms project.
But, I have a folder in my winforms project called "Data" where I house all the xml files needed to run this app. I need those also to be copied to the deploy package when I rebuild, just as the primary output does. I have not found a solution to do this...
Kind regards
Henrik
Re: [2005] Help with setup and deployment
Set the Build Action property of those project items to Content. You can then add another output to your Setup project and select Content. You use the File System Editor to decide where everything goes, so you can specify that that output gets installed in a Data folder under the program folder if you want.
That said, if these XML files will be edited at run time at all then they should not be installed under Program Files. They should be installed under Application Data, which can also be done in the File System Editor. You'd need to adjust your VB code accordingly.