0

我正在尝试从命令行构建Xamarin.iOS解决方案。Visual Studio 2012因此,我需要应用程序IPA文件(AdHoc 构建)。

IDE它没有问题 - 一切都是正确的。从命令行执行:

msbuild "Y:\CloudWorkgroupMobile\CloudWorkgroup.Touch.sln" /p:Configuration=Adhoc;Platform=iPhone;ServerAddress=192.168.160.24 /t:Clean;Build;

Windows以上仅在机器上构建解决方案。还尝试了以下操作:

msbuild "Y:\CloudWorkgroupMobile\CloudWorkgroup.Touch.sln" /target:_RemoteBuild /p:ServerAddress=192.168.160.24

但 Bulid 失败了:

"Y:\CloudWorkgroupMobile\CloudWorkgroup.Touch.sln" (_RemoteBuild target) (1) -> Y:\CloudWorkgroupMobile\CloudWorkgroup.Touch.sln.metaproj : error MSB4057: The target "_RemoteBuild" does not exist in the project. [Y:\CloudWorkgroupMobile\CloudWorkgroup.Touch.sln]

任何想法?

4

1 回答 1

3

_RemoteBuild 目标仅适用于 Xamarin.iOS 项目,而不适用于解决方案。

将其更改为:

msbuild "Y:\CloudWorkgroupMobile\iosProjectLocation\iosProject.proj" /target:_RemoteBuild /p:ServerAddress=192.168.160.24

然后你应该很高兴。

于 2013-10-14T13:02:08.860 回答