gitvisual-studiobin

Visual Studio keeps showing the bin folder in my project


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" />