Monday, February 26, 2007 3:24 PM
I find the Application Verfifer a very useful tool. I also like the Unit Testing support that comes with Visual Studio 2005 so we write our tests using managed C++ which calls our unmanaged C++ code which is built as a static library.
However, we can't find a way of running a Unit Test through the Application Verifier in the VS 2005 IDE. Is this possible ? We resort to doing it outside of the IDE by using the standalone version 3.3 of Application Verifier to instrument mstest.exe itself and then run the Unit Tests from the command line i.e.
C:\Program Files\Microsoft Visual Studio 8\VC>mstest /testcontainer:"\TestProject1.dll" /noisolation
Is there another way ?
Tuesday, March 20, 2007 7:16 PM
Application Verifier is a very useful tool, but it is primarily for unmanaged code. When run against managed code it doesn't actually validate the code under test, but rather validates the CLR itself. As a result, the version of Application Verifier that shipps in-box in Visual Studio Team Eddition for Developers (testers) does not display the "debug with Application Verifier" menu item for non-native code projects (like the unit test projects). Using AppVerif.exe (available from the download center) is the only way to enable Applicaiton Verifier for manged code (like the unit test application).
So, nope. There isn't any other way.
Windows Debuggers and Verifiers
This post is provided as-is with no warranties, and confers no rights.
Friday, March 28, 2008 7:01 AM
Tuesday, May 13, 2008 11:27 PMAre there any plans to add support for mixed solutions? Our soultion's exe happens to be manged, however we use a large number of unmanged C++ (legacy) projects within the same solution. Since the exe is managed, application verifier is not available to us from within the IDE. It would be very useful to be able to set these unmanged projects to run with application verifier.