-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests always run x64 in VS (even when selecting x86) #2926
Comments
Thank you Tobias! I have updated |
maybe add a secondary script for now so its only downloaded and installed when someone needs to debug x86 tests in VS? manually finding the right link to download is always a hassle |
Good idea! |
with xunit.stafact updated and PR #3389 improving setup of local machines it may be possible to close this now? workflow for setting up local x86:
I can now select x86 in the test panel and tests execute |
Line 2 in c517fac
Line 2 in c517fac
Invoking commands with /cc: @MattGal |
It works enough to get the x86 runtime installed, which is all I wanted 😄 |
@weltkante do you think we can close this? I think we resolved this issue. |
Problem
PR #2851 will introduce tests specific to x86/x64 environments but winforms build infrastructure is broken and always runs tests in x64 when running within Visual Studio, even when explicitly selecting x86 in the VS test explorer toolbar.
Workaround
run tests from console via
.\build.cmd -platform x86 -test
Root Cause / Fix
Microsoft.Net.Test.Sdk
to version 16.4 or newerProof of Concept
System.Windows.Forms.Primitives.Tests.csproj
and add an explicit package reference<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4" />
x86.exe
of whatever build-local.ps1 installsPRINTDLGW_32_ensure_layout
andPRINTDLGW_64_ensure_layout
from PR fix:PrintDialog
not shown #2851 inside VS (you can switch the bitness of the test runner in the test explorer toolbar)The text was updated successfully, but these errors were encountered: