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

Tries to add files to .NET Core projects #16

Open
JesseNewman19 opened this issue Oct 25, 2017 · 3 comments
Open

Tries to add files to .NET Core projects #16

JesseNewman19 opened this issue Oct 25, 2017 · 3 comments

Comments

@JesseNewman19
Copy link

.NET Core projects do not need to "include" files by default--they only exclude.

I think there should be proper support for detecting when the csproj file is a .NET Core project and properly disable the "File is not found in project" popups for those files.

@alexjamesbrown
Copy link

I also found this issue today

@szyb
Copy link

szyb commented Mar 27, 2018

The workaround I used is to add to settings:
"csproj.excludeRegex": "ProjectName"

@BinToss
Copy link

BinToss commented Oct 21, 2021

Checking the <Project> element for Sdk="Microsoft.NET.Sdk" should suffice.
SDK-style projects use implicit File Includes regardless of the TargetFramework in both DotNet/VSCode and VS IDE.

Projects that use the .NET Framework (.NET 4.x) format lack the Sdk property and require explicit includes.

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

No branches or pull requests

5 participants