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

Cannot find any .csproj or .fsproj file for your project! #45

Open arcotek-ltd opened 4 years ago

arcotek-ltd commented 4 years ago

I expect this is my lack of experience, however, I'm trying to install a package (Microsoft.Windows.Compatibility). The extension finds the package, and I can select the version. At this point, a little error message pops up in the bottom right:

image

Which fully reads: Cannot find any .csproj or .fsproj file for your project!

My project has a .csproj file which contains:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>

</Project

If anybody has any ideas, I'd be grateful if you could share.

T.I.A.

Saya47 commented 4 years ago

Same problem here. This is how my project structure looks like:

https://imgur.com/a/q0ANd3v

aressler38 commented 3 years ago

I have this problem too. I have a workspace with multiple project folders with Python/C++/C#/NodeJS code, but only one is a C# project. I get the same error, and I don't see any debug log output for this extension.

Tuanle207 commented 3 years ago

If you open single .NET project in your vscode, it will be ok. This problem happen when you open .NET project inside a workspace i think. But I have no idea how to fix it.

lucascooelho commented 3 years ago

If you open single .NET project in your vscode, it will be ok. This problem happen when you open .NET project inside a workspace i think. But I have no idea how to fix it.

I had to open my .NET project in an independent vscode window to run the code and get the package install. If you are in a workspace with more folders we cant get anything installed.