question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VSTest does not run tests in X64 when specified in Platform.

See original GitHub issue

I get the following error in VSO when trying to run tests in an x64 assembly.

Test run will use DLL(s) built for framework Framework45 and platform X86. Following DLL(s) will not be part of run: 

My.Tests.dll, My.Tests.dll are built for Framework Framework45 and Platform X64.

##[error]Error: None of the provided test containers match the Platform Architecture and .Net Framework settings for the test run. Platform: X86  .Net Framework: Framework45. Go to http://go.microsoft.com/fwlink/?LinkID=330428 for more details on managing these settings.

##[error]

##[error]VSTest Test Run failed with exit code: 1

In VSTest.ps1 when Invoke-VsTest is called, the variable $platform is not even passed to the cmdlet.

Invoke-VSTest -TestAssemblies $testAssemblyFiles -VSTestVersion $vsTestVersion -TestFiltercriteria $testFiltercriteria -RunSettingsFile $runSettingsFileWithParallel -PathtoCustomTestAdapters $pathtoCustomTestAdapters -CodeCoverageEnabled $codeCoverage -OverrideTestrunParameters $overrideTestrunParameters -OtherConsoleOptions $otherConsoleOptions -WorkingFolder $workingDirectory -TestResultsFolder $testResultsDirectory -SourcesDirectory $sourcesDirectory

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
jemiller0commented, Dec 6, 2017

I just upgraded to VS 2017 15.5 and now I’m getting the error. It was working fine before the upgrade. Whatever “improvements” were made to testing in 15.5 seem to have broken it for me.

6reactions
aligneddevcommented, Nov 14, 2017

I’m getting this error from VS 2017 v15.4.3.

From the runsettings documentation example “you can also change it from menu Test, Test Settings, Default Processor Architecture”.

Maybe that will help someone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run vstest.console.exe for Unit Test 64-bit platform
Locally it is achieved by setting the tests on Visual Studio to run on x64 as default process. Test tab on VS >...
Read more >
Vstest.console.exe complains about platform mismatch for ...
Test run will use DLL(s) built for framework .NETFramework,Version=v4.7 and platform X64. Following DLL(s) do not match framework/platform settings.
Read more >
Build step VSTest.Console.exe /Platform:x64 not working
Hi, my unit tests are not running anymore since a couple of days. As you can see the build platform is x64. The...
Read more >
Visual Studio Tests - TeamCity On-Premises - JetBrains
Target platform. Select the platform bitness. Note that specifying x64 target platform will force the vstest.console process to be run in the ...
Read more >
Run Visual Studio Test task in 64bit - Order to Management
All of our managed assemblies are build with the any cpu target and we can use both the 32-bit and 64-bit task runner...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found