VSTest does not run tests in X64 when specified in Platform.
See original GitHub issueI 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:
- Created 8 years ago
- Reactions:1
- Comments:10 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.