locked
WDP: Deleting its output folder before Setup can build RRS feed

  • Question

  • User441461330 posted

    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.


    Any clues?

    Thanks
    Steve

     


    Thursday, April 26, 2007 12:01 PM

Answers

  • User441461330 posted

    Solved it.

    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.

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, April 30, 2007 6:45 AM

All replies

  • User441461330 posted

    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.

    Steve

     

    Friday, April 27, 2007 9:24 AM
  • User441461330 posted

    Solved it.

    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.

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, April 30, 2007 6:45 AM