Publishing Misses .pdf Files

G

Guest

I have a solution with multiple web apps. Some of the web apps have folders
containing .pdf files, etc. When I publish any of these web apps, the .pdf
files do not get copied; I have to remember to copy these files over manually.

Ideally I would like to keep the "Only files needed to run the application"
selected. I've selected the "All files in source project folder" which not
only brings in too much, but it fails because the SourceSafe .scc files
cannot be overwritten during publishing.

Is there a .manifest, .config or .ini file I can edit to tell Visual
Studio's publish process to include these types of files during publishing?
 
Joined
Oct 19, 2007
Messages
2
Reaction score
0
If those web apps are Web Application Projects, then you can make Visual Studio publish any file by setting the file's Build Action and Copy To Output Directory properties (in the file's property dialog). I haven't tried all the combinations, but I know that Content/Copy Always works.
 
R

Rad [Visual C# MVP]

I have a solution with multiple web apps. Some of the web apps have folders
containing .pdf files, etc. When I publish any of these web apps, the .pdf
files do not get copied; I have to remember to copy these files over manually.

Ideally I would like to keep the "Only files needed to run the application"
selected. I've selected the "All files in source project folder" which not
only brings in too much, but it fails because the SourceSafe .scc files
cannot be overwritten during publishing.

Is there a .manifest, .config or .ini file I can edit to tell Visual
Studio's publish process to include these types of files during publishing?

Try including the pdf files in your projects, and be sure to set the
build action as content in the properties window
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top