vscode-nuget-package-manager icon indicating copy to clipboard operation
vscode-nuget-package-manager copied to clipboard

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

Open arcotek-ltd opened this issue 4 years ago • 4 comments

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.

arcotek-ltd avatar Mar 03 '20 20:03 arcotek-ltd

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

https://imgur.com/a/q0ANd3v

Saya47 avatar Jun 10 '20 13:06 Saya47

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.

aressler38 avatar Oct 07 '20 14:10 aressler38

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.

Tuanle207 avatar Oct 11 '20 04:10 Tuanle207

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.

lucascooelho avatar Feb 17 '21 15:02 lucascooelho