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

Time:01-17

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?

CodePudding user response:

There is already an answer to your problem in MSDN

<PropertyGroup>
  <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
  <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>
  • Related