views:

88

answers:

2
A: 

Click on each XML file in the Solution Explorer and then in the Properties window below (see your screenshot) you click and change "Build Action" to "Copy" and "Copy to Output Directory" to "Copy If Newer". That does the trick for me, at least with ClickOnce...

Jared Updike
I tried that too, and it does copy it into the Debug or Release folders, but not when I do the install process. Thanks for the suggestion!
Carlo
+1  A: 

Go to your Setup project in Visual Studio. In the "File System" tab, locate "Application Folder". Right-click and then click Add | Folder. Name the new folder "Data". Right-click on the new "Data" folder and click Add File, then add the needed XML files. Repeat for as many different folders and/or files as required by your application.

When you compile and run your setup project, the "Data" folder and its contents will be deployed along with the application.

MusiGenesis
Beautiful! It worked! Thanks man. BTW, do you happen to know the answer for my second problem with this? 2) How can I put the application in the start -> programs menu? Thanks!!
Carlo