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

1.5K
Visualizações
How to change .NET version in Visual Studio 2019 to .NET Framework 4.7.2?

how can I change the .NET to .NET Framework 4.7.2 i am really struggeling since 2 days now. I am doing a WinFormApp and can only use .NET 5 or .NET Core 3.1 but i need .NET Framework 4.7.2 for another Framework. Already installed it through [Microsoft] but it dont appear there to select.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

You don't need to "restart a project" to target .NET Framework. You just need to use the appropriate TargetFramework element in the csproj file.

Here's an example for a Windows Forms application targeting .NET Framework 4.7.2:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net472</TargetFramework>
    <UseWindowsForms>true</UseWindowsForms>
  </PropertyGroup>
</Project>

If you create a .NET Core 3.1 or .NET 5 project, you can just edit the .csproj file to specify .NET Framework as the target framework - no need to start from scratch.

over 4 years ago · Santiago Trujillo Relatório

0

Well, as your main application is .NET Core, it's running on a core CLR. It cannot be changed to a non-core CLR project. You would need to restart a project if there is no way of achieving the goal you need.

If you also need the .NET Core application for whatever reason, I would recommend using an API call to communicate between the two applications or another method of communication which isn't with the project itself.

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