Additionally, the seemly unrelated $(BuildingInsideVisualStudio) also plays into this, you are not allowed to repoint the Port if it is set to false.
Now we should look at $(ServerPort), unfortunately we don’t get too many clues on what this should be, however it looks like this is defaulted to port 22 (SSH) which would make sense as the “new” remote build host seems to be implemented over SSH. Next let’s take a look at the $(ServerAddress), this is pretty straight forward, this as you would expect should be set to the address of the mac build server. This is a great addition, and everyone invoking their projects via MSBuild should set this to false so you fail fast. The question becomes which of these are critical to the operation of this task? Looking at the Task none of these properties are defaulted, thus we'll assume that we need all of them.įirst let’s start with features that have been added, the $(ContinueOnDisconnected) appears to be a new and useful property, if the SayHello Task (which is responsible for communicating with the Mac Build Server) fails for any reason this is the value returned, thus setting this to false will ensure that our builds don't attempt to continue on if we can't get to the build server.
The developer probably did not test running outside of the Visual Studio environment, and thus did not catch the issue. These variables are set when this process is run via Visual Studio.
When this update occurred the developer neglected to properly initialize the following variables from within the msbuild script:
The problem appears to be that they've made several changes to the _SayHello target (located in .targets, in the normal install location of C:\Program Files (x86)\MSBuild\Xamarin\iOS). We're duping it over here too when we're invoking from CruiseControl.NET and our MSBuild script didn't occur until the latest roll. We found what Ian pretty much found I've duplicated my comment on the attached bug below: Visual Studio extension to enable development for Xamarin.iOS. Visual Studio plugin to enable development for Xamarin.Android. Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android. # Test environment (full version information) "D:\BuildsWksp\8\MDX\XamarinTestApp\src\XamarinTestApp\XamarinTestApp\XamarinTestApp.iOS\" (default target) (3) ->Ĭ:\Program Files (x86)\MSBuild\Xamarin\iOS\(507,3): error : Building from the command-line requires a Business license. "D:\BuildsWksp\8\MDX\XamarinTestApp\src\XamarinTestApp\XamarinTestApp.sln" (default target) (1) -> # Supplemental info (logs, images, videos)Įrror from MSBuild log (full log attached): Set MSBuild arguments to include /p:ServerAddress and /p:ServerUser with appropriate valuesīuild fails reports error as "Building from the command-line requires a Business license." Set Configurations to build to "iPhone|Ad-Hoc" Create new Xamarin Forms (Portable) project in Visual Studio and check into TFS.Ĭreate a new (XAML) build definition in TFS using default template.