Visual Studio 2010 post post event is completely ignored

I looked on stackoverflow for something similar to my problem, but with no results.

It seems that my VS started to completely ignore post-build events. 
Post-build events are not triggered in any project or solution I open
or create using my VS 2010. 

      

I don't know why and since then, but previously (a couple of weeks ago) it worked fine. And I haven't changed the project configuration and VS installation myself. There have been a few updates for Windows, however, but since I don't know when it doesn't work, I can't point to them. I want the post-build event to fire, but it never happens, however it may be. The project config is fine as it works for my teammates (on their machines).

Trying to figure out what's going on, I did:

  • test project created
  • disable all plugins (CodeMaid, VSAssistX, etc.)
  • pre-build, pre-build and post-build events are generated that just give away something (and of course allow them in the project properties (Use in build -> Yes)).

As a result, I see echos and VS messages about the pre-build and pre-link build event, but nothing about the post-build event (I'm using the Qt add-on by the way):



    1>------ Rebuild All started: Project: Test, Configuration: Debug Win32 ------
    1>Build started 2013-02-07 11:03:54.
    1>_PrepareForClean:
    1>  Deleting file "Debug\Test.lastbuildstate".
    1>InitializeBuildStatus:
    1>  Creating "Debug\Test.unsuccessfulbuild" because "AlwaysCreate" was specified.
    1>PreBuildEvent:
    1>  prebuild
    1>CustomBuild:
    1>  Moc'ing Test.hpp...
    1>  Uic'ing Test.ui...
    1>  Rcc'ing Test.qrc...
    1>RCC : warning : No resources in 'C:\Projects\BuildEvents\Test\Test\Test.qrc'.
    1>  
    1>ClCompile:
    1>  moc_Test.cpp
    1>  main.cpp
    1>  Test.cpp
    1>  Generating Code...
    1>  qrc_Test.cpp
    1>PreLinkEvent:
    1>  prelink
    1>qtmaind.lib(qtmain_win.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'qtmaind.lib(qtmain_win.obj)' or at 'C:\Projects\BuildEvents\Test\vc100.pdb'; linking object as if no debug info
    1>  Test.vcxproj -> C:\Projects\BuildEvents\Test\Test.exe
    1>FinalizeBuildStatus:
    1>  Deleting file "Debug\Test.unsuccessfulbuild".
    1>  Touching "Debug\Test.lastbuildstate".
    1>
    1>Build succeeded.
    1>
    1>Time Elapsed 00:00:02.80
    ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========


      

I suspect the problem is with Visual Studio itself, but maybe you have some ideas as to what might be causing this and how to fix it?

+3


source to share


1 answer


Finally, I just created a script that I run manually after each build. This is a stupid decision because when any of my teammates make some changes that require post-build changes, I will also need to change my script.



0


source







All Articles