Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arcotek-ltd opened this issue Mar 3, 2020 · 4 comments
Open

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

arcotek-ltd opened this issue Mar 3, 2020 · 4 comments

Comments

@arcotek-ltd
Copy link

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
Copy link

Saya47 commented Jun 10, 2020

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

https://imgur.com/a/q0ANd3v

@aressler38
Copy link

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
Copy link

Tuanle207 commented Oct 11, 2020

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants