jmrog / vscode-nuget-package-manager

An extension for Visual Studio Code that lets you easily add or remove .NET Core 1.1+ package references to/from your project's .csproj file using Code's Command Palette.
MIT License
34 stars 17 forks source link

Only looks for .csproj in the first root folder #35

Open PurplProto opened 6 years ago

PurplProto commented 6 years ago

I have two root folders in my workspace and I've come to find that this extension only searches for a .csprog file only in the first root folder.

Switching the order in which the root folders appear in the workspace seems to have solved my issue.

However, I'd like to suggest support for this. Maybe searching all root folders and then if multiple .csprog files are found, prompt the user to specify which the package should be added to.

PurplProto commented 6 years ago

It does seem however that your extension is not alone on this. I've experienced the same issue with another.

Maybe I just have an abnormal directory structure. I usualy use Visual Studio so I had it laid out as if it were a solution rather than a project.

I can adjust my workflow to suit though, it's no real issue. Feel free to close this issue, or keep it if you perhaps would like to add support for such structures anyways :)

adamralph commented 5 years ago

I have the same problem, and I believe it is genuine. Multi-folder workspaces are very common, so searching only the first folder isn't adequate.

brainydevs commented 5 years ago

I can confirm this issue, Reordering folders in workspace is a hassle.