Closed Swapnali911 closed 2 months ago
This is a Mono runtime issue. It happens also on x64.
The supposed null
argument is the VersionOption
that is passed here:
VersionOption
a static that gets intialized from another class's static:
The VersionOption
was added in this PR https://github.com/dotnet/sdk/pull/38996 which is why we're only recently seeing this issue.
An easy workaround may be to initialize the VersionOption
in ToolAppliedOption
.
The root cause seems some issue with the static initialization in Mono.
cc @lambdageek @uweigand
Probably related to https://github.com/dotnet/runtime/issues/88066 or https://github.com/dotnet/runtime/issues/77513
/cc @steveisok
I believe that tmds fixed this in the linked issue so marking it closed.
To Reproduce
Run
dotnet tool update -g dotnet-trace
Actual :
Expected : dotnet tool update should work without any issue
Tarball Details :
cc : @tmds @omajid @alhad-deshpande @ashwinik30