Sam
Sam

Reputation: 30388

ASP.NET Core Web API showing warning for no reason

I'm using Visual Studio 2017 15.3.5. Just created a new ASP.NET Core Web API project.

Anytime I make changes to a file, I see the yellow warning icon on the file -- see below. App compiles and works fine so I'm trying to understand if VS is telling me something or this is a bug.

I don't seem to have this issue if the project is an ASP.NET Web application. The new app I created is Web API only.

enter image description here

Upvotes: 2

Views: 562

Answers (1)

JP Dolocanog
JP Dolocanog

Reputation: 451

Those references are pointing to some other location other than .csproj.

Delete them and add new references pointing to correct folder.

Then check the properties of the references in the solution explorer and check the path there.

EDIT: Try restarting your IDE if the above solution does not solve your problem.

Upvotes: 1

Related Questions