As codified in the test case Test_NuGet_002 the function AddNuGetDependencies is expected to print an error message to the session when given a non-existent package as dependency, not raise an actual error. This works without issues on Windows, however on Debian Bookworm I observed the following:
The underlying reason is that ⎕CMD works slightly differently on Windows and on Linux. On Windows it always returns the CMD output, while on Linux it raises a DOMAIN ERROR whenever the command processed has a return code that is not equal to 0. This is the case whenever dotnet fails to add a package via a call to dotnet add.
For consistent behaviour across plattforms, this error mode should be captured and properly handled in AddNuGetDependencies.
As codified in the test case
Test_NuGet_002
the functionAddNuGetDependencies
is expected to print an error message to the session when given a non-existent package as dependency, not raise an actual error. This works without issues on Windows, however on Debian Bookworm I observed the following:The underlying reason is that
⎕CMD
works slightly differently on Windows and on Linux. On Windows it always returns the CMD output, while on Linux it raises aDOMAIN ERROR
whenever the command processed has a return code that is not equal to 0. This is the case whenever dotnet fails to add a package via a call todotnet add
.For consistent behaviour across plattforms, this error mode should be captured and properly handled in
AddNuGetDependencies
.