Visual Studio keeps showing the bin folder in my project

0

Issue

I am using Visual Studio 2019 for my C# based solution and I use Git for source control. Yesterday I added two new .NET 2.0 standard SDK projects to my solution and for some reason VS keeps showing the bin folder in the solution explorer for these projects. They have a red icon on them. Does anyone know what that means and how can I get rid of them?
enter image description here

Solution

I realized the cause of this behavior. It is because I am excluding the output of the project compilation to be included in the nuget package because these are analyzer projects.

<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />

Answered By – B Singh

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More