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

"Could not read project.json, please try again." when adding nuget package to csproj #20

Closed innesm closed 7 years ago

innesm commented 7 years ago

When trying to add a nuget package to a csproj project (no project.json), I get this error. Should a project.json file be required if the project file is a .csproj?

jmrog commented 7 years ago

Can you post a screenshot of the error you're seeing? As far as I know, that string doesn't exist anywhere in this repository, so I'm not sure how you're seeing it. Are you sure you're actually using my extension? There is another, older extension in the extension marketplace that does some similar stuff for project.json projects, here: https://marketplace.visualstudio.com/items?itemName=ksubedi.net-core-project-manager. Perhaps it is that extension that is displaying this error.

innesm commented 7 years ago

That must be it - how embarrassing. I installed it a while ago as the recommended nuget extension. Sorry to waste your time!

jmrog commented 7 years ago

@innesm Not a problem, it happens!