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

163
Visualizações
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 Respostas
Responde à pergunta

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