nunit-console icon indicating copy to clipboard operation
nunit-console copied to clipboard

Add parameter for .NET installation/binaries directory path

Open MichalMucek opened this issue 1 year ago • 1 comments

Add a parameter to NUnit Console for .NET installation/binaries directory path that, when defined, will omit or extend NUnit.Engine.Internal.TestAssemblyResolver.GetDotNetInstallDirectory().

The motivation behind this feature is to enable the NUnit Console to work in Windows environments where .NET is not installed but only .NET binaries are downloaded, e.g. during pipeline execution.

MichalMucek avatar Jan 11 '24 16:01 MichalMucek

@MichalMucek Are the binaries used in your pipeline for net framework or core/net5+?

For the latter, I think the DOTNET_ROOT environment variable would be the standard way to define this if the console runner were updated to support this (https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables#dotnet_root-dotnet_rootx86).

stevenaw avatar Jan 21 '24 18:01 stevenaw