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

  • Home
  • SEARCH
  • 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 8564717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:15:41+00:00 2026-06-11T17:15:41+00:00

I am unable to get the Xunit test runner extension for Visual Studio 2012

  • 0

I am unable to get the Xunit test runner extension for Visual Studio 2012 RTM to load my x64 Mixed Mode Assembly.

The error is: System.IO.FileLoadException: Mixed mode assembly is build against version ‘v2.0.50727’ of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

A similar question is here: Visual Studio 2012 Test Project Mixed Mode Runtime

I have added the following line to all .config files in this folder: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow

<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>

I even added it to this folder: C:\Users\Alex\AppData\Local\Microsoft\VisualStudio\11.0\Extensions\zuclypws.1z3 that contains xunit.runner.visualstudio.dll.. I named it xunit.runner.visualstudio.dll.config

Does anyone know how to get this working? I wish this wasn’t so unnecessarily complicated.

  • 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-11T17:15:42+00:00Added an answer on June 11, 2026 at 5:15 pm

    You need to also add the .net 2.0 assemblies to the list.

    <configuration>
      <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
        <supportedRuntime version="v2.0.50727"/>
      </startup>
    </configuration>
    

    I wrote a post about this very problem in VS 2012:

    http://www.diaryofaninja.com/blog/2012/09/13/net-20-mixed-mode-assemblies-in-visual-studio-net-45-test-projects

    In Visual Studio 2012, you need to add the startup code to the following file:

    C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.executionengine86.exe.config
    

    You may also need to add this to the app.config inside the xunit test runner’s application folder (ie inside program files)

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

Sidebar

Related Questions

I have been unable to get Visual Studio to present intellisense when working with
I get unable to open database file when executing rc = sqlite3_open(test.db, &db); ??
I'm unable to get this jquery statement to work on page load but it
I renamed the class classBattle to Game and not I get Unable to load
I am unable to get any test cases that extend ServiceTestCase to run. There
I'm unable to get a working .htaccess that should accept clean URLs to load
I am unable to get the correct title for this, please change the title
I am unable to get a highcharts plugin to render a chart in a
I'm unable to get the Central Maven repo index. I'm running Netbeans 7.0.1 and
I am unable to get a Javascript callback to work with gmaps4_rails when the

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.