Last post Apr 30, 2007 06:45 AM by stevoie
Apr 26, 2007 12:01 PM|stevoie|LINK
I have a standard setup project using the output of a WDP.
when i build the setup project, this forces the WDP to compile the web app its associated with.
This compilation is fine and works. But when its time to then build the setup project, the WDP output folder disappears!
This is consistently happening and is resulting in my Setup project packaging zero files.
VS 2005 Web Deployment Projects
web deployment project msbuild task copy global.asax application_start session_start
Visual Studio 2005 Web Deployment Projects
Apr 27, 2007 09:24 AM|stevoie|LINK
Just to add some extra information.
I'm using the
filemon application to watch the WDP output folder and i can see devenv.exe delete all the files in the output folder once the setup project starts.
Apr 30, 2007 06:45 AM|stevoie|LINK
I had the InitialTargets property in the <Project InitialTargets="CustomCleanup" ... >
set to a custom target that cleaned out the WDP output folder before the build was started.
Well it seems that this gets called again when the next project is building (i.e. the Setup project).
The solution was to move the code from the CustomCleanup target into the BeforeBuild target. So now
the custom clean up code is only called before the WDP build.