Publishing a .NET project

  • Thread starter Thread starter Dave Cullen
  • Start date Start date
D

Dave Cullen

The Publish tab in VS 2005 is a pretty nifty feature, but I can't figure out
how to add files that are not directly associated with the application.

I need the target PC to have a specific directory structure with a couple of
essential files. Is there any way to tell the publish thingie to add them
during installation, or is this a complicated matter?

Thanks
 
According to Brian Noyes' book "Smart Client Deployment with ClickOnce"
(which is a brilliant book, by the way):

Add the files to your project (right-click on Solution Explorer,
Add/Existing Item, then add it); set the BuildAction to content.

Then you can set the Publish Status and DownloadGroup in the "Application
Files" under "Publish" to include them.

"When you publish them, the files will be placed in the same relative path
as they exist in the project folder in Visual Studio."

HTH,
Robin S.
 
Back
Top