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

327
Visualizações
How to define an event after publish

In Visual Studio 2019, you can define events to be run after BUILD ("Post-build"), but can you define also an event after PUBLISH?

I am publishing a .net 5 single-file (Windows Desktop App), which is in fact an exe file. I want to digitally sign the exe with a tool before it is finally released. How can I automate this?

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

0

you can use msbuild target to execute a task after the project is published and invoke a command to sign you executable file.

edit you csproj file and add the following msbuild target

<Target Name="Sign" AfterTargets="Publish">
    <Exec WorkingDirectory="$(PublishDir)" Command="{your signing tool command here}" />
</Target>

save your file and run dotnet publish the signing command will be executed after the publish is finished

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