fernandoescolar / vscode-solution-explorer

This is a Visual Studio Code extension that provides a (.sln) Visual Studio Solution explorer panel..
MIT License
352 stars 73 forks source link

NuGet packages manager #227

Closed BachiMjavanadze closed 1 year ago

BachiMjavanadze commented 2 years ago

At the moment it's not possible to add a package by clicking on the Add package button. Hope it's a upcoming feature.

I suggest show this window when clicking on the Add package button:

image

If it's not impossible then please add settings that gives ability to call any other extension when you click on the Add package button:

"vssolution.NugetackageExternalExtention": "nugetpackagemanagergui"

I would take this extension.

fernandoescolar commented 2 years ago

You can already search and add nuget packages in other faster way: vscode-solution-explorer-nuget

BachiMjavanadze commented 2 years ago

@fernandoescolar In my case when I click on Add package button nothing happens, I can't see this pop-up window

fernandoescolar commented 2 years ago

Could you check if you have any nuget.config file in the root folder of the project or in its parent folders?

BachiMjavanadze commented 2 years ago

No, I do not have any nuget.config file

BachiMjavanadze commented 2 years ago

by the way, package remove button works correctly

fernandoescolar commented 2 years ago

And Can you see any error in the developer tools console after clicking in the add package button?

BachiMjavanadze commented 2 years ago

No Output, no terminal messages are shown

wlwatkins commented 2 years ago

same, not sure what a CPS (dotnet core) project type is as it neither works with ASP.NET CORE empty nor console app

image

nev-21 commented 1 year ago

same problem here, popup doesn't appear after click on + button or "Add package"

fernandoescolar commented 1 year ago

same, not sure what a CPS (dotnet core) project type is as it neither works with ASP.NET CORE empty nor console app

image

Any project you can create with this tool is a CPS project. If your project it is not CPS, you should not see the "+" button or the "add package" menu option.

fernandoescolar commented 1 year ago

About the issue, I can't reproduce it so I can't help, could you please provide some log error in the Dev Tools or output panel related to it?

nev-21 commented 1 year ago

Debug

Hi @fernandoescolar, I just download v0.7.3 and debugged it.

Then I tried with a breakpoint:

getActions() method when click on "+" or "Add package":

wizard.run():

THE REAL PROBLEM: do-while

CONCLUSION:

the while is infinite, and the / cause problems.

fernandoescolar commented 1 year ago

This is very useful. It seems I didn’t think in windows filesystem when I’m looking for a the nuget.config files.

Thank you very much!

BachiMjavanadze commented 1 year ago

On Windows 10 I still can't add new package, can't see this pop-up window

nev-21 commented 1 year ago

I tested the new release (v0.7.4) in windows 11 it works perfectly.

BachiMjavanadze commented 1 year ago

Ok, I think reason was VSCode portable mode, on regular VSCode everything works... but even on portable version everything works except installing packages

BachiMjavanadze commented 1 year ago

After reinstalling VSCode portable mode everything works fine. Thanks!