How to prevent Visual Studio .NET core project to create subfolders under the bin folder?

When I have a .NET core project in Visual Studio, and I tell VS to put the compiled binaries into the "bin" folder, VS will not put the complied binaries into the "bin" folder. Instead, it will put them into the "bin\Debug\net6.0" or "bin\Debug\net6.0-windows" folder. How to prevent VS from doing that?

>Solution :

There is already an answer to your problem in MSDN

MSDN

<PropertyGroup>
  <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
  <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>

Leave a Reply