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

333
Vistas
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 Respuestas
Responde la pregunta

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 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