Open SchreinerK opened 2 months ago
Hm... interesting.
It is a .NET error. The call stack there is all .NET API.
Though, on my system, it throws the same error. This discussion suggests that this type of error is raised when the package spec does not indicate the correct package type: https://github.com/dotnet/sdk/issues/37010
Though cs-script package does have the correct type:
Unless they have changed the package type value again. Will need to dig into it.
WOW, not sure what is going on in the NuGet land.
Installing the the first, latest and some intermediate versions works just fine:
Note the last install on the screenshot, dotnet tool install --global cs-script.cli
, it also install fine.
But just a minute ago it was failing with the same error as yours
OMG I see it LOL
You and I have made the same mistake. We were trying to install not a tool but a package (a class library)
.NET Tool: cs-script.cli
.NET package: cs-script
Well, that is a complete solution to the problem :)
dotnet tool install -g CS-Script
I dont know if this is related to the cs-script package or something wrong with dotnet tool installer.
C:\Users\Kay\.dotnet\tools.store
exists and is active used for the other tools.