Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

403
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda