{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/4152","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/4152/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/4152/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/4152/events","html_url":"https://github.com/mono/MonoGame/pull/4152","id":108286049,"number":4152,"title":"Added support for MSBuild.Content.Builder on MacOS","user":{"login":"dellis1972","id":810617,"avatar_url":"https://avatars.githubusercontent.com/u/810617?v=3","gravatar_id":"","url":"https://api.github.com/users/dellis1972","html_url":"https://github.com/dellis1972","followers_url":"https://api.github.com/users/dellis1972/followers","following_url":"https://api.github.com/users/dellis1972/following{/other_user}","gists_url":"https://api.github.com/users/dellis1972/gists{/gist_id}","starred_url":"https://api.github.com/users/dellis1972/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dellis1972/subscriptions","organizations_url":"https://api.github.com/users/dellis1972/orgs","repos_url":"https://api.github.com/users/dellis1972/repos","events_url":"https://api.github.com/users/dellis1972/events{/privacy}","received_events_url":"https://api.github.com/users/dellis1972/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mono/MonoGame/labels/ContentPipeline","name":"ContentPipeline","color":"ededed"},{"url":"https://api.github.com/repos/mono/MonoGame/labels/MacOS","name":"MacOS","color":"9600fd"},{"url":"https://api.github.com/repos/mono/MonoGame/labels/Tools","name":"Tools","color":"83d5fe"}],"state":"closed","locked":false,"assignee":{"login":"dellis1972","id":810617,"avatar_url":"https://avatars.githubusercontent.com/u/810617?v=3","gravatar_id":"","url":"https://api.github.com/users/dellis1972","html_url":"https://github.com/dellis1972","followers_url":"https://api.github.com/users/dellis1972/followers","following_url":"https://api.github.com/users/dellis1972/following{/other_user}","gists_url":"https://api.github.com/users/dellis1972/gists{/gist_id}","starred_url":"https://api.github.com/users/dellis1972/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dellis1972/subscriptions","organizations_url":"https://api.github.com/users/dellis1972/orgs","repos_url":"https://api.github.com/users/dellis1972/repos","events_url":"https://api.github.com/users/dellis1972/events{/privacy}","received_events_url":"https://api.github.com/users/dellis1972/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mono/MonoGame/milestones/8","html_url":"https://github.com/mono/MonoGame/milestones/3.5%20Release","labels_url":"https://api.github.com/repos/mono/MonoGame/milestones/8/labels","id":1324448,"number":8,"title":"3.5 Release","description":"","creator":{"login":"dellis1972","id":810617,"avatar_url":"https://avatars.githubusercontent.com/u/810617?v=3","gravatar_id":"","url":"https://api.github.com/users/dellis1972","html_url":"https://github.com/dellis1972","followers_url":"https://api.github.com/users/dellis1972/followers","following_url":"https://api.github.com/users/dellis1972/following{/other_user}","gists_url":"https://api.github.com/users/dellis1972/gists{/gist_id}","starred_url":"https://api.github.com/users/dellis1972/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dellis1972/subscriptions","organizations_url":"https://api.github.com/users/dellis1972/orgs","repos_url":"https://api.github.com/users/dellis1972/repos","events_url":"https://api.github.com/users/dellis1972/events{/privacy}","received_events_url":"https://api.github.com/users/dellis1972/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":5,"state":"open","created_at":"2015-09-25T19:48:58Z","updated_at":"2015-10-14T13:52:48Z","due_on":"2015-09-27T23:00:00Z","closed_at":null},"comments":11,"created_at":"2015-09-25T08:41:44Z","updated_at":"2015-10-14T17:13:03Z","closed_at":"2015-10-14T13:52:48Z","pull_request":{"url":"https://api.github.com/repos/mono/MonoGame/pulls/4152","html_url":"https://github.com/mono/MonoGame/pull/4152","diff_url":"https://github.com/mono/MonoGame/pull/4152.diff","patch_url":"https://github.com/mono/MonoGame/pull/4152.patch"},"body":"In order to support the Content.Builder.targets on\r\nMacOS we firstly needed to install the Tooling and\r\nAssemblies in the right location. In this case\r\n/Library/Frameworks/MonoGame.framework/vX.X.X.X\r\n\r\nSymbolic links are required to get everything working\r\nright. In this case we need a v3.0 link in\r\n/Library/Frameworks/MonoGame.framework but we also need\r\nsome links in the Mono.framework as well. Namely\r\n\r\n/Library/Frameworks/Mono.framework/External/MonoGame\r\n\r\nWe also need to add an Imports element to the csproj files.\r\nNow the current MonoDevleop/Xamarin Studio templating system\r\ndoes not support doing this directly. So a new MSBuild\r\nprocessing class has been added to the addin. This class\r\nwill check if the project is a \"MonoGame\" project (is references\r\nMonoGame.Framework.dll or has a MonoGamePlatform element) and\r\ninject the required data into the csproj.\r\n\r\nThe templates have been left referencing the Nuget packages\r\nfor now.\r\n\r\nModified the ContentBuilder targets file to Batch its items\r\nthis is to get round issues when running under xbuild on Mac.\r\n\r\nUpdated templates to use a new MonoGameInstallDirectory property\r\nrather than $(MSBuildProgramFiles32) so that we can use the\r\nsame paths for references.\r\n\r\nIt also adds the followiing to the projects\r\n\r\n```\r\n<MonoGameInstallDirectory Condition=\"'$(OS)' != 'Unix' \">$(MSBuildProgramFiles32)</MonoGameInstallDirectory>\r\n<MonoGameInstallDirectory Condition=\"'$(OS)' == 'Unix' \">$(MSBuildExtensionsPath)</MonoGameInstallDirectory>\r\n```\r\n\r\nSo that we can resolve the directory correctly on both Windows\r\nMac and Linux"},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/148122254","html_url":"https://github.com/mono/MonoGame/pull/4152#issuecomment-148122254","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/4152","id":148122254,"user":{"login":"cra0zy","id":6773302,"avatar_url":"https://avatars.githubusercontent.com/u/6773302?v=3","gravatar_id":"","url":"https://api.github.com/users/cra0zy","html_url":"https://github.com/cra0zy","followers_url":"https://api.github.com/users/cra0zy/followers","following_url":"https://api.github.com/users/cra0zy/following{/other_user}","gists_url":"https://api.github.com/users/cra0zy/gists{/gist_id}","starred_url":"https://api.github.com/users/cra0zy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cra0zy/subscriptions","organizations_url":"https://api.github.com/users/cra0zy/orgs","repos_url":"https://api.github.com/users/cra0zy/repos","events_url":"https://api.github.com/users/cra0zy/events{/privacy}","received_events_url":"https://api.github.com/users/cra0zy/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T17:13:03Z","updated_at":"2015-10-14T17:13:03Z","body":"I've added MonoGame.Content.Builder.targets to Linux installer in: #4178"}}