belav / csharpier

CSharpier is an opinionated code formatter for c#.
https://csharpier.com
MIT License
1.41k stars 98 forks source link

[installation] csharpier is not found in NuGet feeds #1294

Closed FrancescElies closed 5 months ago

FrancescElies commented 5 months ago

I just wanted to install csharpier but I seem not to be able to install it

: $nu.os-info                                                                                       1 06/13/2024 02:35:08 PM
╭────────────────┬─────────╮
│ name           │ windows │
│ arch           │ x86_64  │
│ family         │ windows │
│ kernel_version │ 22631   │
╰────────────────┴─────────╯
: dotnet new tool-manifest --force                                                                    06/13/2024 02:37:32 PM
The template "Dotnet local tool manifest file" was created successfully.

: dotnet tool install csharpier -g                                                                    06/13/2024 02:37:35 PM
csharpier is not found in NuGet feeds C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\".

Any hints what I might be missing?

belav commented 5 months ago

It sounds like maybe your only source is C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\

You can see all the sources with this - CSharpier is on nuget.org

PS C:\> dotnet nuget list source
Registered Sources:
  1.  nuget.org [Enabled]
      https://api.nuget.org/v3/index.json
  2.  Microsoft Visual Studio Offline Packages [Enabled]
      C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\

Sometimes clearing the nuget cache can also help

dotnet nuget locals all --clear
FrancescElies commented 5 months ago

nuget.org was missing, thanks!