Help Needed: Issues Compiling and Running Avalonia App on macOS
Hi everyone,
I'm having some trouble compiling and running my Avalonia app on macOS, and I could use some help. Here's a summary of the steps I've followed and the issues I'm encountering:
Creating a New Project
Open Terminal and navigate to the folder where I want to create my project (e.g., cd ~/Documents/Apps).
Created a new folder named "MyNewApp" and navigated into it.
Created a new Avalonia project with the command: dotnet new avalonia.app.
Editing Code in Visual Studio Code
Opened the project folder in Visual Studio Code with code ..
Edited the Program.cs file with my code.
Building and Running the Application
Built and published the project using: dotnet publish -c Release -r osx-x64.
Navigated to the publishing folder: /Users/felixlind/Desktop/VisualStudioCode/MyNewApp/bin/Release/net8.0/osx-x64/publish/.
Creating a .app File
Created the necessary folder structure and moved the executable to the MacOS folder.
Created an Info.plist file with the required content.
Running and Creating a .dmg File
Tried running the standalone .app application with open MyApp.app.
Installed create-dmg and created a .dmg file with create-dmg "MyApp.app" "MyApp.dmg".
Verified by double-clicking the .dmg file.
Problems:
I have issues like the one in the picture. If needed i can provide you my Anydesk id, and you can have a look.
Thanks!
1 Reply
you only changed Program.cs?