VS 2005: Custom build step is not executed for static library project.

I've experienced a problem after migrating my Win32 static library project from VS2003 to VS2005. The custom build steps are not executed even if I perform the rebuild of the project. Custom build step is executed only in case if any project settings are changed while project loaded to IDE, but after project reloading the problem is happen again.

I found that problem is reproduced also for new created static library project in VS 2005.
Stet to reproduce:
1. Create new Win32 static library project.
2. add custom build step
3. perform rebuild, custom build step is executed correctly.
4. unload project and load again, perform rebuild - custom build step is NOT executed.

The problem is not reproduced for DLL and EXE projects.

What I do wrong

Any help is appreciated.

Thanks.


Answer this question

VS 2005: Custom build step is not executed for static library project.

  • NaturalInterface

    It would be great to get some hot fix for issue (dll to replace or something).
    We are using tens projects in our build system and can't just change existing build system behavior due to significant dependencies between projects.

    So please let me know when fix will be available, i'll be happy to test it.

    Thanks,
    Decima.

  • Boidzerg

    Decima, could you please log the bug at http://lab.msdn.microsoft.com/productfeedback/ and mention there that you would want a hot fix. Also, you might need to contact support (PSS) for such request.

    Thanks,
      Ayman Shoukry
      VC++ Team

  • Mark Woody

    you aren't doing anything wrong, this is a bug in VS 2005. unfortunately, by the time it was noticed it was too late to get a fix in. :(

    as a work-around you can use a build-event (pre-build, post-build etc), if applicable, or add another project (that is not a lib project, obviously) to perform the custom build step.

    we will make every effort to get this fixed as soon as possible. sorry for the inconvenience.


    josh
    Visual C++ Project/Build system developer


  • VS 2005: Custom build step is not executed for static library project.