❔ Can Visual Studio potential fixes suggest nuget packages?
Hello, if you've used ReSharper in Visual Studio or Rider, you might be familiar with the feature where it suggests downloading the relevant NuGet package if you're using code from an uninstalled NuGet package. I'm wondering can I do this through settings or with an light extension(not ReSharper, cus it's heavy) in Visual Studio?
11 Replies
Visual Studio does this natively, yes
It has some amount of indexing for common Nuget packages, particularly those published by Microsoft, I would imagine.
It's also controlled by a flag in settings, which I think is enabled by default
also, I'm referring to VS2022, not sure if this feature was available in older versions
It sounds good. Do you know the setting name
I'm using VS 2022 but it doesn't suggest me nuget packages @V.EINA Jaken
Maybe the setting is not enabled
I think it's buried under "Text Editor" => "C#" => "Advanced"?
what type are you hoping to be suggested?
I suppose it's also possible it only indexes types in packages you've used before? Or just packages in your nuget cache?
Hmm you are right
Now i tried for EFCore.SqlServer nuget library code. Vs suggested me to install it.
I want to use EventStoreClientGrpc.Stream library codes. Bu it didn't suggest me because I havent used it before. Then i manually install it. So as you said It indexes types ı've used befor or some cache algorithm
Thanks for replies buddy @V.EINA Jaken
o7
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
You are right. @tebeco
Yes I actually meant that package
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Yes, it is true, but I think Resharper is more effective in this regard.
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.