mikefourie-zz / MSBuildExtensionPack

MIT License
366 stars 104 forks source link

Cannot find NUnit3 on 32-bit operating system #83

Closed EbenZhang closed 5 years ago

EbenZhang commented 6 years ago

in the code it seems the toolpath is hard coded to %programfiles(x86)% thus the error

The specified task executable location "%programfiles(x86)%\NUnit.org\nunit-console\nunit3-console.exe" is invalid.
mikefourie-zz commented 5 years ago

you can specify ToolPath if the default fallback doesn't work for you

if (string.IsNullOrEmpty(this.ToolPath)) { this.ToolPath = Environment.ExpandEnvironmentVariables(@"%programfiles(x86)%\NUnit.org\nunit-console"); }

EbenZhang commented 5 years ago

will be better if the extension can handle it automatically since people may have 32 bits as well as 64 bits build agents