Hi All: I have a VS2010 professional sp1 web project that I'm deploying to server2008 sp1.
In VS2010, I created two new folders in the project, one of which I've put some PDF documents, and the second to which I'm writing PDF documents. Everything works properly when I debug on my Windows 7 box...files are read from the documents folder, and files
are written to the output folder.
WHen I use web deploy to publish to the server, neither folder is created on the server. If I manually create those folders on the server, web deploy deletes those folders!
If I check "leave extra files on destination (do not delete)", publishing doesn't delete the folders, but it doesn't copy any existing files into those folders...what am I doing wrong?
I tried cleaning and rebuilding the project, but I can't get it to "recognize" the folders in VS2010???
If I understand correctly, there are two parts to this issue:
Deploy one folder that contains some PDF contents
Deploy a second folder, empty, that will have documents added later
For the first issue, it should work as long as the PDF documents are marked for publishing. To do this, set the Build Action on the files to Content. By default, unrecognized types (for web development) are set to Build Action = None, which the publishing
process ignores.
If I understand correctly, there are two parts to this issue:
Deploy one folder that contains some PDF contents
Deploy a second folder, empty, that will have documents added later
For the first issue, it should work as long as the PDF documents are marked for publishing. To do this, set the Build Action on the files to Content. By default, unrecognized types (for web development) are set to Build Action = None, which the publishing
process ignores.
dotnetnoob
Member
401 Points
732 Posts
web deploy not copying project folders?
Feb 22, 2012 08:56 PM|LINK
Hi All: I have a VS2010 professional sp1 web project that I'm deploying to server2008 sp1.
In VS2010, I created two new folders in the project, one of which I've put some PDF documents, and the second to which I'm writing PDF documents. Everything works properly when I debug on my Windows 7 box...files are read from the documents folder, and files are written to the output folder.
WHen I use web deploy to publish to the server, neither folder is created on the server. If I manually create those folders on the server, web deploy deletes those folders!
If I check "leave extra files on destination (do not delete)", publishing doesn't delete the folders, but it doesn't copy any existing files into those folders...what am I doing wrong?
I tried cleaning and rebuilding the project, but I can't get it to "recognize" the folders in VS2010???
jamlew
Participant
1977 Points
256 Posts
Microsoft
Re: web deploy not copying project folders?
Feb 23, 2012 12:32 AM|LINK
If I understand correctly, there are two parts to this issue:
For the first issue, it should work as long as the PDF documents are marked for publishing. To do this, set the Build Action on the files to Content. By default, unrecognized types (for web development) are set to Build Action = None, which the publishing process ignores.
For the second issue, see http://blogs.msdn.com/b/webdevelopertips/archive/2010/04/29/tip-105-did-you-know-how-to-include-empty-directory-when-package-a-web-application.aspx for a workaround.
- Jimmy Lewis
Microsoft SDET
Visual Web Developer Team
dotnetnoob
Member
401 Points
732 Posts
Re: web deploy not copying project folders?
Feb 23, 2012 01:46 PM|LINK
Thanks...I never ran into this issue before.
For the first issue, along with setting the "build action", do I also have to set "copy to output" from "do not copy" to "coy if newer"?