Test assemblies build with VS2008 are recognized as VS2005 assemblies

Hello,

When I build a VS.Net 2008 solution including a unit test project and try to run the unit tests after the build process using MSTest, I receive the following error:

UTA059: The test DLL 'UnitTestMyService.dll' was built using Visual Studio 2005, and cannot be run. To resolve this issue please rebuild the test DLL using the current version of Visual Studio.

Some extra information:

- The VS.Net version of the build task in finalbuilder is specified as VS.Net 2008

- I do not have VS2005 installed on my build machine

- When I build the same solution using VS2008 (on the build machine) and then run MSTest using FinalBuilder I do not receive errors.

- I'am using FinalBuilder 5.5.0.560

So I only receive this error if I build the solution using Final Builder.

Can you help me out please?

Kind regards,

Geert

Hi Geert,

Sorry to hear you’re having problems. I have some questions which should help us diagnose this issue:

Do you have the “Use MSBuild” checkbox set on the Build VS.NET action properties? If you enable or disable this option, does it change the outcome? Are you building the same configuration (ie Release, Debug, etc.) from the VS IDE that you are building via FinalBuilder?

Finally, is it possible for you to please copy and paste the output from Build VS.NET action for us?

Thanks.

Regards,

Angus

Hi Agnus,

Thank you for your fast reply. I performed the test using the same build configuration and also with & without using MSBuild. The same errors occur. Below you can find some snippets of the output of the FinalBuilder:

.....

Running C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com with parameters :  /rebuild "Debug|Mixed Platforms" "D:\Solutions\MyService\MyService.sln"
------

Microsoft (R) Visual Studio Version 9.0.21022.8.
Copyright (C) Microsoft Corp. All rights reserved.

......

Microsoft (R) Test Execution Command Line Tool Version 9.0.21022.8
Copyright (c) Microsoft Corporation. All rights reserved.
   
Loading D:\Solutions\MyService\localtestrun.testrunconfig...
Loading D:\Solutions\UnitTestMyService\bin\Debug\UnitTestMyService.dll...
D:\Solutions\UnitTestMyService\bin\Debug\UnitTestMyService.dll
UTA059: The test DLL 'UnitTestMyService.dll' was built using Visual Studio 2005, and cannot be run. To resolve this issue please rebuild the test DLL using the current version of Visual Studio.
Action Failed
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe returned : 1

....

Kind regards,

Geert