Determine architecture of remote process on windows#15396
Merged
nohwnd merged 1 commit intomicrosoft:mainfrom Feb 10, 2026
Merged
Determine architecture of remote process on windows#15396nohwnd merged 1 commit intomicrosoft:mainfrom
nohwnd merged 1 commit intomicrosoft:mainfrom
Conversation
This was referenced Feb 19, 2026
nohwnd
added a commit
to nohwnd/vstest
that referenced
this pull request
Apr 13, 2026
…icrosoft#15396 PR microsoft#15266 (Set dotnet_root_<arch> always): - Test that DOTNET_ROOT_<ARCH> is set early even on non-Windows - Test that the feature flag VSTEST_DISABLE_DOTNET_ROOT_ON_NONWINDOWS suppresses the early set - Test that an existing DOTNET_ROOT_<ARCH> in the environment is never overridden (user's explicit value takes priority) - Test that omitting VSTEST_DOTNET_ROOT_ARCHITECTURE while providing VSTEST_DOTNET_ROOT_PATH throws a descriptive InvalidOperationException PR microsoft#15184 (Handle dotnet_root in testhost version-aware way): - Test legacy DOTNET_ROOT forwarding for old x64 testhost (dll absent) - Test legacy DOTNET_ROOT(x86) forwarding for old x86 testhost (dll absent) - Test that architecture mismatch prevents any DOTNET_ROOT being set PR microsoft#15396 (Determine architecture of remote process on Windows): - Test GetCurrentProcessArchitecture returns a recognised PlatformArchitecture - Test GetCurrentProcessArchitecture is consistent across calls (caching) - Test GetProcessArchitecture throws NotImplementedException on non-Windows Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Figuring out the process architecture of remote process was not implemented for netcore, which makes it not work in dotnet test.
This fixes it for windows, because that is the only place where we use windows api to dump the processes, on macos and linux we use the netcore client.
Related issue
Kindly link any related issues. E.g. Fixes #xyz.