{"action":"created","issue":{"url":"https://api.github.com/repos/fsharp/fsharp/issues/391","labels_url":"https://api.github.com/repos/fsharp/fsharp/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/fsharp/issues/391/comments","events_url":"https://api.github.com/repos/fsharp/fsharp/issues/391/events","html_url":"https://github.com/fsharp/fsharp/issues/391","id":60547885,"number":391,"title":"Error Building FSharp on MacOSX - Microsoft.Portable.FSharp.Targets","user":{"login":"evolvedmicrobe","id":1330626,"avatar_url":"https://avatars.githubusercontent.com/u/1330626?v=3","gravatar_id":"","url":"https://api.github.com/users/evolvedmicrobe","html_url":"https://github.com/evolvedmicrobe","followers_url":"https://api.github.com/users/evolvedmicrobe/followers","following_url":"https://api.github.com/users/evolvedmicrobe/following{/other_user}","gists_url":"https://api.github.com/users/evolvedmicrobe/gists{/gist_id}","starred_url":"https://api.github.com/users/evolvedmicrobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evolvedmicrobe/subscriptions","organizations_url":"https://api.github.com/users/evolvedmicrobe/orgs","repos_url":"https://api.github.com/users/evolvedmicrobe/repos","events_url":"https://api.github.com/users/evolvedmicrobe/events{/privacy}","received_events_url":"https://api.github.com/users/evolvedmicrobe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-10T18:38:40Z","updated_at":"2015-09-13T23:29:58Z","closed_at":"2015-03-21T20:59:31Z","body":"If I clone F# and try to build it on MacOSX pointing to a 64 bit version of mono 3.12 compiled from the source tarball (autogen.sh --prefix = $HOME/mono64), then make fails with the following error:\r\n\r\n    Target _CopyDeployFilesToOutputDirectoryPreserveNewest:\r\n    /Users/myname/mono64/lib/mono/4.5/Microsoft.Common.targets: error : Cannot copy /Users/myname/git/fsharp/src/fsharp/FSharp.Build/Microsoft.Portable.FSharp.Targets to /Users/myname/git/fsharp/lib/release/Microsoft.Portable.FSharp.Targets, as the source file doesn't exist.\r\n    \tTask \"Copy\" execution -- FAILED\r\n    \tDone building target \"_CopyDeployFilesToOutputDirectoryPreserveNewest\" in project \"/Users/myname/git/fsharp/src/fsharp/FSharp.Build/FSharp.Build.fsproj\".-- FAILED\r\n    Done building project \"/Users/myname/git/fsharp/src/fsharp/FSharp.Build/FSharp.Build.fsproj\".-- FAILED    \r\n\r\n    Build FAILED.\r\n\r\n\r\n\r\nThe error appears to be due to the following section of src/FSharp/FSharp.Build/FSharp.Build.fsproj\r\n\r\n     <None Include=\"Microsoft.Portable.FSharp.Targets\">\r\n          <Link>Microsoft.Portable.FSharp.Targets</Link>\r\n          <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r\n     </None>\r\n\r\n\r\nIf I delete this section, the build proceeds but then dies much later with: \r\n\r\n    mono64/lib/mono/4.5/Microsoft.Common.targets: error : PCL Reference Assemblies not installed.\r\n\r\n\r\nIt looks like @mexx removed the Microsoft.Portable.FSharp.targets file with commit f34dec8 in December, and there has been some discussion of the PCLs and these types of issues on the web.  Anyone know a quick fix?"},"comment":{"url":"https://api.github.com/repos/fsharp/fsharp/issues/comments/139928256","html_url":"https://github.com/fsharp/fsharp/issues/391#issuecomment-139928256","issue_url":"https://api.github.com/repos/fsharp/fsharp/issues/391","id":139928256,"user":{"login":"7sharp9","id":588746,"avatar_url":"https://avatars.githubusercontent.com/u/588746?v=3","gravatar_id":"","url":"https://api.github.com/users/7sharp9","html_url":"https://github.com/7sharp9","followers_url":"https://api.github.com/users/7sharp9/followers","following_url":"https://api.github.com/users/7sharp9/following{/other_user}","gists_url":"https://api.github.com/users/7sharp9/gists{/gist_id}","starred_url":"https://api.github.com/users/7sharp9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7sharp9/subscriptions","organizations_url":"https://api.github.com/users/7sharp9/orgs","repos_url":"https://api.github.com/users/7sharp9/repos","events_url":"https://api.github.com/users/7sharp9/events{/privacy}","received_events_url":"https://api.github.com/users/7sharp9/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T23:29:58Z","updated_at":"2015-09-13T23:29:58Z","body":"With no official 64bit OSX on mono this is always going to be fiddly IMHO.  I've never had a working 64bit build due to various 32bit dependencies in Xamarin Studio.  \r\n\r\nHopefully a full 64bit mono and Xamarin Studio in the future will make this experience better on OSX."}}