C
C#8mo ago
BekirK

❔ 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
JakenVeina
JakenVeina8mo ago
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
BekirK
BekirK8mo ago
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
JakenVeina
JakenVeina8mo ago
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?
BekirK
BekirK8mo ago
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
JakenVeina
JakenVeina8mo ago
o7
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
BekirK
BekirK8mo ago
You are right. @tebeco Yes I actually meant that package
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
BekirK
BekirK8mo ago
Yes, it is true, but I think Resharper is more effective in this regard.
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord8mo ago
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.
Want results from more Discord servers?
Add your server
More Posts