我只能从csproj构建Xamarin iOS而不使用解决方案命令行 [英] Can I build Xamarin iOS from the csproj only an not use the solution command line

查看:69
本文介绍了我只能从csproj构建Xamarin iOS而不使用解决方案命令行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些要在解决方案中构建的应用程序,我想分别构建它们

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆