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

162
Vistas
dotnet publish osx-x64 doesn't generate executable

I have an Avalonia project I'm tried to build for mac. But when I use dotnet publish to generate the build for osx, there is no executable file generated. It generates a .dll file with the same name as the program (same name as the executable should be) and also a file with no extension with the same name. To do so I use

dotnet publish "VisualStudio solution path" -c Release -f netcoreapp3.1 -r osx-x64 -p:UseAppHost=True --self-contained true -o "outputPath"

As per I read here I also added UseAppHost True in my project properties. They look like this:

<PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <RuntimeIdentifiers>win7-x64;osx-x64;ubuntu.16.04-x64</RuntimeIdentifiers>
    <Nullable>enable</Nullable>
    <LangVersion>preview</LangVersion>
    <UseAppHost>True</UseAppHost>
  </PropertyGroup>

I'm at a loss as to how to get dotnet publish to generate an actual executable file for mac. Does anyone know what I'm doing wrong and what I need to do? Thanks.

Edit: I'm doing this on windows 10.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

the bundling is possible on windows, but you'll have to fix permission, sign and notarize on a Mac

Here is the full documentation about bundling in Avalonia : https://docs.avaloniaui.net/docs/distribution-publishing/macos

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