Forum Visual Studio

TeamCity Build Hangs After Upgrading to Xamarin 4.1

chriscchrisc CAUniversity

I recently upgraded my build machine to Xamarin 4.1 and now the build hangs. It only hangs when building from TeamCity. If I open the build in Visual Studio 2015 the build completes fine.

The build hangs on the compute signature for the SayGoodbye target. The tail of the log looks like:

[09:23:28][Foo\Foo.iOS\Foo.iOS.csproj] _SayGoodbye
[09:23:28][_SayGoodbye] SayGoodbye
[09:23:28][SayGoodbye] Compute signature for bin\iPhone\Release\FooiOS.app

For some reason the msbuild process does not finish. I have to manually kill the msbuild process on the build machine.

The log also rasies a couple errors about missing targets:

[09:19:45][Step 2/4] The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
[09:19:45][Step 2/4] The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
[09:19:45][Step 2/4] The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,38)" does not exist in the project, and will be ignored.
[09:19:45][Step 2/4] The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,71)" does not exist in the project, and will be ignored.
[09:19:42][Step 2/4] MSBuild command line parameters contain "/property:" or "/p:". It is recommended to define System Property on Build Parameters instead.
[09:21:14][Step 2/4] The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
[09:21:14][Step 2/4] The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
[09:21:14][Step 2/4] The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,38)" does not exist in the project, and will be ignored.
[09:21:14][Step 2/4] The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,71)" does not exist in the project, and will be ignored.
[09:21:14][Step 2/4] The target "_CreateGeneratedSourcesDir" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets (43,5)" does not exist in the project, and will be ignored.
[09:21:14][Step 2/4] The target "FindWatchAppBundle" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets (132,35)" does not exist in the project, and will be ignored.

Any help would be much appreciated.

Sign In or Register to comment.