VS2008 - AfterBuild Not working RRS feed

  • Question

  • User-549722499 posted

    I am having a big issue with AfterBuild....it doesn't seem to be firing for VS2008.  VS2005 seems to work just fine.

    Basically I am trying to over write a web.config file with the correct one for the specific enviroment.  Here is one of my target sections, I have done this with no conditions as well.  We do this in VS2005 and works no problem for another project, but VS2008 doesn't even seem to call this command.  Should it be something else.

     I know there was a problem with the Beta version of WDP, but I have the final release and everything I am finding stated this is fix and everyone who had an issue was with the Beta version.

     Any help would be great, this has been blowing my mind.

    <Target Name="AfterBuild" Condition=" '$(Configuration)|$(Platform)' == 'QAS|AnyCPU' ">

    <Copy SourceFiles="$(SourceWebPhysicalPath)\Web-QAS.config" DestinationFiles="$(WDTargetDir)\Web.config" />


    Monday, June 2, 2008 2:13 PM


  • User372121194 posted


    It works fine on my machine while I test it using Visual Studio 2008.

    In your case, please make sure that the Condition is correct (Match configuration that is used while building).

    You also can try to delete this Condition.


    I hope this helps.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 5, 2008 6:59 AM