Our Xamarin app code base has multiple projects in there.
The issue that we have with the Xamarin Archive step is the hardcoded “/target:Build” argument that getting passed to the “msbuild” command which tells the msbuild to build all the projects. However, on the CI, we want to use a specified target not the Build target.
This is the current behaviour:
msbuild.dll /target:Build samplesolution.sln <other arguments>
What we need:
msbuild.dll /target:MyTarget samplesolution.sln <other arguments>
We did try adding our target to the “Options to append to the iOS build command” to somehow override the default build target but it did not work.
It seems that the “/target:Build” is hardcoded to the msbuild buildtools! https://github.com/bitrise-io/go-xamarin/blob/master/builder/commands.go