Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Remove DOTNET_ROOT environment variable before process start process.StartInfo.EnvironmentVariables.Remove("DOTNET_ROOT"); Another option is to use the x86 .NET SDK for running the tests: ...
Answer
#1: Initial revision
> Remove `DOTNET_ROOT` environment variable before process start > > `process.StartInfo.EnvironmentVariables.Remove("DOTNET_ROOT");` Another option is to use the x86 .NET SDK for running the tests: > `& "C:\Program Files (x86)\dotnet\dotnet" test` Source: https://github.com/dotnet/sdk/issues/22647#issuecomment-973898754