Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7789351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:16:21+00:00 2026-06-01T21:16:21+00:00

We are using TFS 2010 to build our solutions and run unit tests (MSTest).

  • 0

We are using TFS 2010 to build our solutions and run unit tests (MSTest). Everything used to work fine and our builds succeeded when all unit tests passed.

However, after updating our test projects to .Net 4, all builds fail with error message ‘Results file does not exist. Publish failed’. This occurs even though all tests pass.

We have tried installing http://support.microsoft.com/kb/983504 to no avail.

Running MSTest with diagnostic logging creates a huge file, but the log contains no error message. The only line I find slightly interesting is

TestFormatsConverter.LoadAsCurrentVersion: <path_to_build>\TestResults\tfsservice_<service> 2012-03-28 09_51_49_Any CPU_Debug.trx is already the current file format.

Our old solutions, which have not been updated, still succeeds.

Update

After observing the build folders on the build machine during a build, I noticed that the .trx file for the failing solutions are not created in the TestResults folder. For the old solutions, the file is created. Is there any reason why upgrading to .Net 4 might cause the .trx file not being created?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:16:23+00:00Added an answer on June 1, 2026 at 9:16 pm

    So it turns out there was a solution to this problem after all!

    What actually happens is that MSTest is run twice; once with MSTest 10 and once with MSTest 9. The first run covers all of our .Net 4 test projects and creates and publishes the test results like it is supposed to.

    However, our source also contains a .Net 2 assembly named Microsoft.Reactive.Testing.dll, which is included in the newest (.Net 4) installer for Reactive Framework (1.0.10621). MSTest 10 cannot run .Net 2 tests, so another test run is started.

    Unfortunately, Microsoft.Reactive.Testing.dll is only included in the test run because it contains “test” in its name. It does not actually contain any unit tests. Thus, no tests are run, no results file is created, and no results file can be published.

    The solution is simple: exchange the .Net 2 version of Microsoft.Reactive.Testing.dll with a .Net 4 version. This can be downloaded using NuGet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're using TFS 2010 Team Build which automatically runs our unit tests during the
We are using TFS Build 2010 for Builds. We have two branches of source
We are moving our projects to TFS 2010 using the SfTS v3 (Scrum for
I am using an InvokeProcess activity in TFS 2010 to try and run the
I'm using TFS 2008 and I would like to build some solutions in debug
I was wondering if anybody is using TFS 2010 beta 2 build server to
Using TFS 2010. I have created a number of new Build Definitions. I also
I am running a build using TFS 2008 to build a Visual Studio 2010
I have implemented Continuous Integration using TFS Version Control and TFS Build 2010. The
We want to upgrade our build servers to run our typemock tests, but I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.