我只能从csproj构建Xamarin iOS而不使用解决方案命令行 [英] Can I build Xamarin iOS from the csproj only an not use the solution command line
问题描述
我有一些要在解决方案中构建的应用程序,我想分别构建它们
I have a few apps i want to build inside my solution and I want to build them separately
运行中:/Applications/Xamarin \ Studio.app/Contents/MacOS/mdtool -v建立"--configuration:Release | iPhone" ./42.csproj
running : /Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool -v build "--configuration:Release|iPhone" ./42.csproj
失败.
我确实看到所有Xamarin示例都使用带有mdtool的解决方案文件(.sln),但我仍然想知道是否有一种方法可以仅在我的解决方案中的项目上进行引用.
I do see that all of Xamarin examples use a solution file (.sln) with the mdtool, but I am still wondering of there is a way to reference just on project inside my solution.
推荐答案
好吧,在与xamarin交谈之后,他们声称不建议使用mdtool.有人告诉我要使用xbuild,做到这一点的方法是:
Well After talking with xamarin they claim that using mdtool is not recommended. I was told to use xbuild and the way to do it is:
xbuild Project.sln /p:Configuration=AppStore /p:Platform=iPhone /p:BuildIpa=true /t:42
这会将BuildIpa标志设置为true.
This will set the BuildIpa flag to true.
这篇关于我只能从csproj构建Xamarin iOS而不使用解决方案命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!