gpt4 book ai didi

c# - 为 osx 创建安装程序时合并 Mono 失败

转载 作者:太空宇宙 更新时间:2023-11-03 11:36:58 24 4
gpt4 key购买 nike

当我尝试将我的 MonoMac 应用程序发布为 mac 安装程序时,出现以下错误。我正在使用 MonoDevelop 2.4.2、MonoMac 2.4.2.4,该项目是由“C# MonoMac 项目”创建的新项目。

我刚刚添加了两个类并通过 MainWindow 的 Initialize 调用它们。

Creating app bundleContents/Info.plistContents/PkgInfoContents/Resources/MainMenu.nibContents/Resources/MainWindow.nibContents/Resources/Scripts/itunes.scptContents/Resources/Scripts/out.txtMerging Mono into app bundlemmp --linksdkonly -o "/tmp/monomac-build-634406615434742750" -n "djBillboard" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Drawing.dll" -a "/Users/Sebi/.config/MonoDevelop/addins/MonoDevelop.MonoMac.2.4.2.4/MonoMac.dll" -a "/Users/Sebi/Projects/djBillboard/lib/Nugget.dll" "/Users/Sebi/Projects/djBillboard/djBillboard/bin/Debug/djBillboard.exe"Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object  at MonoMac.Bundler.Driver.Link () [0x00000] in :0   at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in :0 Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object  at MonoMac.Bundler.Driver.Link () [0x00000] in :0   at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in :0 Merging Mono failed

最佳答案

将链接器更改为“不链接程序集”为我解决了这个问题。

关于c# - 为 osx 创建安装程序时合并 Mono 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5955827/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com