Xamarin build is triggering an unwanted clean

I have a build config for a xamarin pcl project. The app source is in one git repo and i have a second for scripts.
The project is a PCL thta has main/andorid/ios folders
But in addition I have another folder for themes, depending on the build configuration I copy certain files for graphics etc, but including info.plist for iOS
Part of the build process (csproj) runs a script to change the build number in the info.plist. 
Unfortunately later in the build process xamarin runs some code - Xamarin.Messaging.targets _VerifyBuildSignature

This checks AN 'IsValidSignature' result then performs a Clean which wipes my modified info.plist .... I dont want to edit a xamarin distributed target file...


 <UsingTask TaskName="Xamarin.Messaging.Tasks.VerifyBuildSignature" AssemblyFile="Xamarin.Messaging.Tasks.dll" />
<PropertyGroup>
<BuildDependsOn>
_SayHello;
_VerifyBuildSignature;
AfterConnect;
$(BuildDependsOn);
BeforeDisconnect;
_SayGoodbye;
</BuildDependsOn>
</PropertyGroup>

<Target Name="_VerifyBuildSignature">
<VerifyBuildSignature
SessionId="$(BuildSessionId)"
SignatureDirectory="$(BuildSignatureDirectory)">
<Output TaskParameter="IsValidSignature" PropertyName="IsValidSignature" />
</VerifyBuildSignature>

<MSBuild
Condition="'$(IsValidSignature)' != 'true'"
Projects="$(MSBuildProjectFile)"
Targets="Clean"
Properties="Configuration=$(Configuration); Platform=$(Platform); BuildProjectReferences=false" >
</MSBuild>
</Target>

0
1 comment

Hi Rob,

 

I'm not fully sure I follow the issue. If it's the Xamarin project triggering the clean, then there isn't much we can do here. If the problem is that this issue doesn't happen locally, only on TeamCity, please check this suggestions here: https://confluence.jetbrains.com/display/TCD18/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity

 

Other than that, it sounds like modifying the plist is making Xamarin fail the signature check, which should be reproducible locally. I'm afraid I'm not familiar enough with that process to be able to suggest how to avoid the Valid Signature check failing, especially if you don't want to modify the xml to stop the clean from happening. You might want to check with Xamarin to see if that's a possibility.

 

0

Please sign in to leave a comment.