{"action":"created","issue":{"url":"https://api.github.com/repos/cake-build/cake/issues/1104","repository_url":"https://api.github.com/repos/cake-build/cake","labels_url":"https://api.github.com/repos/cake-build/cake/issues/1104/labels{/name}","comments_url":"https://api.github.com/repos/cake-build/cake/issues/1104/comments","events_url":"https://api.github.com/repos/cake-build/cake/issues/1104/events","html_url":"https://github.com/cake-build/cake/issues/1104","id":167190414,"number":1104,"title":"Trouble building solution on a clean build server","user":{"login":"ravensorb","id":2222472,"avatar_url":"https://avatars.githubusercontent.com/u/2222472?v=3","gravatar_id":"","url":"https://api.github.com/users/ravensorb","html_url":"https://github.com/ravensorb","followers_url":"https://api.github.com/users/ravensorb/followers","following_url":"https://api.github.com/users/ravensorb/following{/other_user}","gists_url":"https://api.github.com/users/ravensorb/gists{/gist_id}","starred_url":"https://api.github.com/users/ravensorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravensorb/subscriptions","organizations_url":"https://api.github.com/users/ravensorb/orgs","repos_url":"https://api.github.com/users/ravensorb/repos","events_url":"https://api.github.com/users/ravensorb/events{/privacy}","received_events_url":"https://api.github.com/users/ravensorb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-23T16:00:05Z","updated_at":"2016-07-23T16:09:48Z","closed_at":null,"body":"<!--\r\nBEFORE YOU SUBMIT AN ISSUE:\r\n\r\nDO NOT CREATE AN ISSUE FOR A QUESTION - questions are better served in chat, and can be later raised as an issue if required.\r\n-  chat - https://gitter.im/cake-build/cake\r\n\r\nDELETE EVERYTHING IN THIS COMMENT BLOCK\r\n\r\nTEMPLATE FOR BUG REPORTS:\r\n-->\r\n\r\n### What You Are Seeing?\r\nXamarin based projects are not compiling correctly.  Either SDK files are not found or Android packages are not downloading correctly on a clean build server with minimal build tools installed.\r\n\r\nNote: This works perfectly if I execute msbuild manually on exact same system\r\n\r\n![error](https://i.imgur.com/R5fG5GD.png)\r\n\r\nand\r\n\r\n```\r\nC:\\Program Files (x86)\\MSBuild\\Xamarin\\Android\\Xamarin.Android.Common.targets(387,2): error XA5207: Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\\Users\\build\\AppData\\Local\\Xamarin\\Xamarin.Android.Support.v4\\23.3.0.0\\embedded\\classes.jar doesn't exist. [E:\\Builds\\GitHub\\Xamarin-Forms-Labs\\src\\Forms\\XLabs.Forms.Droid\\XLabs.Forms.Droid.csproj]\r\nC:\\Program Files (x86)\\MSBuild\\Xamarin\\Android\\Xamarin.Android.Common.targets(387,2): error XA5207: Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\\Users\\build\\AppData\\Local\\Xamarin\\Xamarin.Android.Support.v4\\23.3.0.0\\embedded\\libs/internal_impl-23.3.0.jar doesn't exist. [E:\\Builds\\GitHub\\Xamarin-Forms-Labs\\src\\Forms\\XLabs.Forms.Droid\\XLabs.Forms.Droid.csproj]\r\nC:\\Program Files (x86)\\MSBuild\\Xamarin\\Android\\Xamarin.Android.Common.targets(387,2): error XA5206: Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Android resource directory C:\\Users\\build\\AppData\\Local\\Xamarin\\Xamarin.Android.Support.v4\\23.3.0.0\\embedded\\./ doesn't exist. [E:\\Builds\\GitHub\\Xamarin-Forms-Labs\\src\\Forms\\XLabs.Forms.Droid\\XLabs.Forms.Droid.csproj]\r\nC:\\Program Files (x86)\\MSBuild\\Xamarin\\Android\\Xamarin.Android.Common.targets(387,2): error XA5207: Please install package: 'Xamarin.Android.Support.v7.CardView' available in SDK installer. Java library file C:\\Users\\build\\AppData\\Local\\Xamarin\\Xamarin.Android.Support.v7.CardView\\23.3.0.0\\embedded\\classes.jar doesn't exist. [E:\\Builds\\GitHub\\Xamarin-Forms-Labs\\src\\Forms\\XLabs.Forms.Droid\\XLabs.Forms.Droid.csproj]\r\nC:\\Program Files (x86)\\MSBuild\\Xamarin\\Android\\Xamarin.Android.Common.targets(387,2): error XA5206: Please install package: 'Xamarin.Android.Support.v7.CardView' available in SDK installer. Android resource directory C:\\Users\\build\\AppData\\Local\\Xamarin\\Xamarin.Android.Support.v7.CardView\\23.3.0.0\\embedded\\./ doesn't exist. [E:\\Builds\\GitHub\\Xamarin-Forms-Labs\\src\\Forms\\XLabs.Forms.Droid\\XLabs.Forms.Droid.csproj]\r\nC:\\Program Files (x86)\\MSBuild\\Xamarin\\Android\\Xamarin.Android.Common.targets(387,2): error XA5207: Please install package: 'Xamarin.Android.Support.v7.RecyclerView' available in SDK installer. Java library file C:\\Users\\build\\AppData\\Local\\Xamarin\\Xamarin.Android.Support.v7.RecyclerView\\23.3.0.0\\embedded\\classes.jar doesn't exist. [E:\\Builds\\GitHub\\Xamarin-Forms-Labs\\src\\Forms\\XLabs.Forms.Droid\\XLabs.Forms.Droid.csproj]\r\nC:\\Program Files (x86)\\MSBuild\\Xamarin\\Android\\Xamarin.Android.Common.targets(387,2): error XA5206: Please install package: 'Xamarin.Android.Support.v7.RecyclerView' available in SDK installer. Android resource directory C:\\Users\\build\\AppData\\Local\\Xamarin\\Xamarin.Android.Support.v7.RecyclerView\\23.3.0.0\\embedded\\./ doesn't exist. [E:\\Builds\\GitHub\\Xamarin-Forms-Labs\\src\\Forms\\XLabs.Forms.Droid\\XLabs.Forms.Droid.csproj]\r\n```\r\n\r\nI have also replicated this on both a Windows 10 (Build 1511 base) and a Windows 2016 Tap 5 build server.\r\n\r\nIt seems that there is something that cake is doing when it executes msbuild that is resulting in the error.\r\n\r\n### What is Expected?\r\nBuild should work as expected.  if I run msbuild manually it works 100% of the time on a clean system\r\n\r\n### What version of Cake are you using?\r\nTried \r\n* Version 0.13.0+Branch.main.Sha.f7346f2a5fb4e19a24cf15780ce635529f921be4\r\n* \r\n### Are you running on a 32 or 64 bit system?\r\n64\r\n\r\n### What environment are you running on?  Windows? Linux? Mac?\r\n* Windows 2012R2\r\n* Windows 10 (based on 1511)\r\n* Windows 2015 Tap 5\r\n\r\n### Are you running on a CI Server?  If so, which one?\r\n* Standalone and appveyor (both have same issue)\r\n\r\n<!--\r\nIf possible, provide a link to the failing build.\r\n-->\r\nhttps://ci.appveyor.com/project/xlabs/xamarin-forms-labs-hva8p/build/2.3.0.3.master\r\n\r\n### How Did You Get This To Happen? (Steps to Reproduce)\r\n\r\n**Test 1** \r\nWindows 2012 R2\r\n* Setup\r\n  * Windows Updates as of 7/21/2016\r\n  * Install Chocolatey\r\n  * Install 7zip\r\n  * Install Visual Studio 2015 Enterprise w/Update 3 (full install all components except emulators and lightspeed)\r\n* Build Process\r\n  * Clone repository\r\n  * Execute .\\build.ps1 -Target Package  \r\n  * Result Fails\r\n  * Immediately execute .\\build.ps1 -Target Package (which does a full clean)\r\n  * Result Succeeds\r\n\r\n**Test 2** \r\nWindows 2012 R2\r\n* Setup\r\n  * Windows Updates as of 7/21/2016\r\n  * Install Chocolatey\r\n  * Install 7zip\r\n  * Install Visual Studio 2015 Enterprise w/Update 3 (full install all components except emulators and lightspeed)\r\n  * Install Xamarin Tools (from Xamarin.com) with defaults (see screenshots below)\r\n* Build Process\r\n  * Clone repository\r\n  * Execute .\\build.ps1 -Target Package  \r\n  * Result Fails\r\n\r\n!(AndroidSDKInstall)[https://i.imgur.com/T76dTVv.png]\r\n!(MissingComponents)[https://i.imgur.com/fkWOYAx.png]\r\n\r\n**Test 3**\r\nWindows 2012 R2\r\n* Setup\r\n  * Windows Updates as of 7/21/2016\r\n  * Install Chocolatey\r\n  * Install 7zip\r\n  * Install Visual Studio 2015 Enterprise w/Update 3 (full install all components except emulators and lightspeed)\r\n  * Install Xamarin Tools (from Xamarin.com) with defaults (see screenshots below)\r\n* Build Process\r\n  * Clone repository\r\n  * Execute .\\.nuget\\nuget restore .\\src\\XLabs.sln -ConfigFile .\\.nuget\\nuget.config\r\n  * Execute msbuild /m /v:normal /p:Configuration=\"Release\" /p:Platform=\"Any CPU\" /p:TreatWarningsAsErrors=False /target:Build \"E:/Builds/GitHub/Xamarin-Forms-Labs/src/XLabs.sln\r\n  * Result Fails\r\n\r\n**Test 4**\r\nWindows 2012 R2\r\n* Setup\r\n  * Windows Updates as of 7/21/2016\r\n  * Install Chocolatey\r\n  * Install 7zip\r\n  * Install Visual Studio 2015 Enterprise w/Update 3 (full install all components except emulators and lightspeed)\r\n  * Install Xamarin Tools (from Xamarin.com) with defaults (see screenshots below)\r\n* Build Process\r\n  * Clone repository\r\n  * Execute .\\.nuget\\nuget restore .\\src\\XLabs.sln -ConfigFile .\\.nuget\\nuget.config\r\n  * Execute msbuild /v:normal /p:Configuration=\"Release\" /p:Platform=\"Any CPU\" /p:TreatWarningsAsErrors=False /target:Build \"E:/Builds/GitHub/Xamarin-Forms-Labs/src/XLabs.sln\r\n  * Result Sucess\r\n\r\n**The issue seems to be related to the /m property**\r\n\r\n[Link to GitHub Repository](https://github.com/XLabs/Xamarin-Forms-Labs/)\r\n\r\n### Output Log\r\n\r\n[cakebuild-20160723-0706.txt](https://github.com/cake-build/cake/files/379847/cakebuild-20160723-0706.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/cake-build/cake/issues/comments/234726125","html_url":"https://github.com/cake-build/cake/issues/1104#issuecomment-234726125","issue_url":"https://api.github.com/repos/cake-build/cake/issues/1104","id":234726125,"user":{"login":"gep13","id":1271146,"avatar_url":"https://avatars.githubusercontent.com/u/1271146?v=3","gravatar_id":"","url":"https://api.github.com/users/gep13","html_url":"https://github.com/gep13","followers_url":"https://api.github.com/users/gep13/followers","following_url":"https://api.github.com/users/gep13/following{/other_user}","gists_url":"https://api.github.com/users/gep13/gists{/gist_id}","starred_url":"https://api.github.com/users/gep13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gep13/subscriptions","organizations_url":"https://api.github.com/users/gep13/orgs","repos_url":"https://api.github.com/users/gep13/repos","events_url":"https://api.github.com/users/gep13/events{/privacy}","received_events_url":"https://api.github.com/users/gep13/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T16:09:48Z","updated_at":"2016-07-23T16:09:48Z","body":"Off the top of my head, I am not familiar with the \"/m\" flag. What is it? And how is it getting set?"}}
{"actor":{"display_login":"gep13"}}