Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

404
Vistas
Why is 'net6.0-windows' sub folder created?

I am using visual studio 2022 and created a winforms .net 6 application. I specified an output path for my release build where i want the .exe created, but visual studio creates a subfolder called 'net6.0-windows' and puts the exe in there. How do i stop this and get it to put the exe where I specified?

Some background: I am upgrading a .Net Framework 4.8 Winforms to .Net 6. In .net framework it puts the exe in the output folder specified (no subfolders). I want to keep with the same behavior because other files and utilities also need to be in there or look in that folder.

Output path specified in visual studio

[Output path specified in visual studio]

Actual output path

[Actual output path]

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I'll provide the following information for reference and sake of answering the question.

You can prevent that the TargetFramework is added to the output folder by adding the following property to your project file.

<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>

Additionally, you can prevent a RuntimeIndentifier (e.g. win-x64), if any, to be added setting this property to false:

<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>

Should you do this?

Maybe not. Those directories are there for a reason: to allow multiple TargetFramework (versions) and/or multiple RuntimeIndentifier in parallel (otherwise outputs would mix in a unholy manner).

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda