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

531
Visualizações
C#: Out of memory during dotnet build after migrate to NET 5

We use App Buddy as our CI/CD system. Today we migrate project from ASP.NET Core 3.1 to NET 5. After that dotnet build start consuming a lot of RAM (allocate about 10-12GB) and we dont have as much memory on our server.

On our CI/CD server during dotnet build we get Microsoft.CSharp.Core.targets(71,5): error : Process terminated. System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

I've tried use -maxCpuCount:1 but it doesn't work. Is it any possibility to limit memory which dotnet build can use?

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

0

After almost one week of searching with team. We find a way to reduce ram consumption during build. We solve it by adding -p:RunAnalyzers=false and it help a lot! Other solutions didn't work.

dotnet build "project" -p:RunAnalyzers=false

We can also disable this in csproj (and not run analyzers in VS, but it not good idea in my opinion).

It's not 100% solving problem, but it allows us to run build, so I will not run analyzer by the time I find solution to limit ram usage of msbuild

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