Closed gwerbin closed 1 year ago
Thanks @gwerbin we require a specific version of dotnet to build PSSA which is why we install it again, we are not using the latest dotnet
If you know the version of dotnet you have that may be helpful
If you know the version of dotnet you have that may be helpful
Is that something different than this output?
> dotnet --list-sdks
7.0.203 [/opt/local/share/dotnet/sdk]
Hi, I hate to be difficult about this, but I don't feel like this question was answered at all. I tried to provide all relevant information, please let me know if there's anything else I should add here. I know very little about Dotnet, so I apologize if I omitted something that should be obvious.
Is there something I can do to prevent the bot from closing this?
@SydneyhSmith I saw you re-opened this for me before. Is there any additional information I can provide that would help here?
I've found it to not work on Windows as well, suggestion is to install manually, this is just there to work in CI.
@bergmeister what does "manually" mean? As above, I'm not a .NET or C# developer and I was just trying to follow instructions. I'll be happy for any pointers to books, guides, etc. that would help me actually use this tool. We have several internal PS1 scripts that I would strongly like to subject to static analysis, having found bugs in the past. We use Shellcheck for the same purpose on Unix shell scripts.
I installed Dotnet using Brew but the installer doesn't seem to find it. The version listed in
Get-Command
is0.0.0
, so maybe that's the problem. I think it's unlikely that this is solely a downstream packaging bug, because I also tried with Macports and had the same problem, as well as installing both the Brew "formula" and "cask" versions.Steps to reproduce
Expected behavior
Installer finds the Brew-installed Dotnet and uses it
Actual behavior
The installer can't find Dotnet, so it downloads and installs a fresh Dotnet runtime in my home directory.
Environment data