我可以从csproj构建Xamarin iOS而不使用解决方案命令行

时间:2014-05-25 12:08:15

标签: ios xamarin.ios solution csproj mdtool

我想在我的解决方案中构建一些应用程序,我想单独构建它们

跑步: / Applications / Xamarin \ Studio.app/Contents/MacOS/mdtool -v build“--configuration:Release | iPhone”./42.csproj

失败。

我确实看到所有Xamarin示例都使用mdtool的解决方案文件(.sln),但我仍然想知道有一种方法可以在我的解决方案中引用项目。

2 个答案:

答案 0 :(得分:2)

您可以像这样运行:

/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool -v build -c:"Release|iPhone" -p:"42"

运行此文件时,您需要确保自己位于解决方案文件夹中。上面命令中的42应该引用iOS项目文件所在的子文件夹,而不是项目文件本身。

答案 1 :(得分:1)

在与xamarin交谈后,他们声称不推荐使用mdtool。有人告诉我使用xbuild,方法是:

xbuild Project.sln /p:Configuration=AppStore /p:Platform=iPhone /p:BuildIpa=true /t:42

这会将BuildIpa标志设置为true。

相关问题