【发布时间】:2016-11-02 09:58:07
【问题描述】:
我正在尝试使用 Xamarin 中的 xbuild 实现持续集成。我知道 xbuild 使用 .csproj 文件来编译应用程序。我想从 csproj 文件中打印变量“IpaPackagePath”和“OutputPath”的值。我认为(?)xbuild 将类似于 msbuild。在 msbuild 中,打印值的方法是使用 Message 任务 以下是文件的部分
<PropertyGroup>
<CreateIpaDependsOn>
$(CreateIpaDependsOn);
DisplayMessages
</CreateIpaDependsOn>
</PropertyGroup>
<Target Name="DisplayMessages">
<Message Text="IPAPACKAGEPATH = $(IpaPackagePath)" />
<Message Text="OUTPUTPATH = $(OutputPath)" />
</Target>
<Target Name="CopyIpa"
Condition="'$(OutputType)' == 'Exe'
And '$(ComputedPlatform)' == 'iPhone'
And '$(BuildIpa)' == 'true'">
<Copy
SourceFiles="$(IpaPackagePath)"
DestinationFolder="$(OutputPath)"/>
</Target>
我没有发现控制台上打印的任何消息或执行的任何目标名称“DisplayMessages”。 我做错了什么?
或者有什么方法可以打印xbuild中的变量值吗?
【问题讨论】:
标签: xamarin msbuild xamarin.ios continuous-integration xbuild