You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a console application made in .net and I have figured out how to use this to build it, but it doesn't seem to be working. I set my properties, set runtime targets, and run the command, and it builds to a .app just fine, but when I try to run the app it opens, crashes near instantly, then shows a 'application quit unexpectedly' popup. I have set the CFBundleExecutable correctly, when I try to run the executable directly that works as well, setting the CFPrincipalClass didn't change anything either (I'm assuming its meant to be the class where Main() is?). Same thing happens if I build it to arm64 or just x64. I am on an M1 mac, if that helps.
Console applications usually run from a terminal. I don't know if there is defined behaviour for running a console application as an .app. I don't think your application actually crashes...it just 'finishes' and because the OS was expecting something different...you got the 'application quit unexpectedly' message.
You should be able to run your application from zsh (or similar) without having to do ANY of this packaging.
I build commandline tools for macOS in C# all the time.
I have a console application made in .net and I have figured out how to use this to build it, but it doesn't seem to be working. I set my properties, set runtime targets, and run the command, and it builds to a .app just fine, but when I try to run the app it opens, crashes near instantly, then shows a 'application quit unexpectedly' popup. I have set the CFBundleExecutable correctly, when I try to run the executable directly that works as well, setting the CFPrincipalClass didn't change anything either (I'm assuming its meant to be the class where Main() is?). Same thing happens if I build it to arm64 or just x64. I am on an M1 mac, if that helps.
My source code is here
The text was updated successfully, but these errors were encountered: