{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3608","repository_url":"https://api.github.com/repos/xamarin/xamarin-macios","labels_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3608/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3608/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3608/events","html_url":"https://github.com/xamarin/xamarin-macios/issues/3608","id":300739377,"number":3608,"title":"Xamarin.Mac Binding Library project does not support \"Full\" framework","user":{"login":"cwensley","id":367446,"avatar_url":"https://avatars2.githubusercontent.com/u/367446?v=4","gravatar_id":"","url":"https://api.github.com/users/cwensley","html_url":"https://github.com/cwensley","followers_url":"https://api.github.com/users/cwensley/followers","following_url":"https://api.github.com/users/cwensley/following{/other_user}","gists_url":"https://api.github.com/users/cwensley/gists{/gist_id}","starred_url":"https://api.github.com/users/cwensley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwensley/subscriptions","organizations_url":"https://api.github.com/users/cwensley/orgs","repos_url":"https://api.github.com/users/cwensley/repos","events_url":"https://api.github.com/users/cwensley/events{/privacy}","received_events_url":"https://api.github.com/users/cwensley/received_events","type":"User","site_admin":false},"labels":[{"id":770328881,"url":"https://api.github.com/repos/xamarin/xamarin-macios/labels/macOS","name":"macOS","color":"9e3a21","default":false}],"state":"closed","locked":false,"assignee":{"login":"chamons","id":6392201,"avatar_url":"https://avatars0.githubusercontent.com/u/6392201?v=4","gravatar_id":"","url":"https://api.github.com/users/chamons","html_url":"https://github.com/chamons","followers_url":"https://api.github.com/users/chamons/followers","following_url":"https://api.github.com/users/chamons/following{/other_user}","gists_url":"https://api.github.com/users/chamons/gists{/gist_id}","starred_url":"https://api.github.com/users/chamons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamons/subscriptions","organizations_url":"https://api.github.com/users/chamons/orgs","repos_url":"https://api.github.com/users/chamons/repos","events_url":"https://api.github.com/users/chamons/events{/privacy}","received_events_url":"https://api.github.com/users/chamons/received_events","type":"User","site_admin":false},"assignees":[{"login":"chamons","id":6392201,"avatar_url":"https://avatars0.githubusercontent.com/u/6392201?v=4","gravatar_id":"","url":"https://api.github.com/users/chamons","html_url":"https://github.com/chamons","followers_url":"https://api.github.com/users/chamons/followers","following_url":"https://api.github.com/users/chamons/following{/other_user}","gists_url":"https://api.github.com/users/chamons/gists{/gist_id}","starred_url":"https://api.github.com/users/chamons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamons/subscriptions","organizations_url":"https://api.github.com/users/chamons/orgs","repos_url":"https://api.github.com/users/chamons/repos","events_url":"https://api.github.com/users/chamons/events{/privacy}","received_events_url":"https://api.github.com/users/chamons/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/milestones/8","html_url":"https://github.com/xamarin/xamarin-macios/milestone/8","labels_url":"https://api.github.com/repos/xamarin/xamarin-macios/milestones/8/labels","id":2797141,"number":8,"title":"d15-6","description":"","creator":{"login":"rolfbjarne","id":249268,"avatar_url":"https://avatars0.githubusercontent.com/u/249268?v=4","gravatar_id":"","url":"https://api.github.com/users/rolfbjarne","html_url":"https://github.com/rolfbjarne","followers_url":"https://api.github.com/users/rolfbjarne/followers","following_url":"https://api.github.com/users/rolfbjarne/following{/other_user}","gists_url":"https://api.github.com/users/rolfbjarne/gists{/gist_id}","starred_url":"https://api.github.com/users/rolfbjarne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolfbjarne/subscriptions","organizations_url":"https://api.github.com/users/rolfbjarne/orgs","repos_url":"https://api.github.com/users/rolfbjarne/repos","events_url":"https://api.github.com/users/rolfbjarne/events{/privacy}","received_events_url":"https://api.github.com/users/rolfbjarne/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":37,"state":"open","created_at":"2017-09-27T10:20:45Z","updated_at":"2018-03-01T20:14:49Z","due_on":"2017-12-18T08:00:00Z","closed_at":null},"comments":3,"created_at":"2018-02-27T18:18:16Z","updated_at":"2018-03-02T19:50:43Z","closed_at":"2018-03-01T18:15:49Z","author_association":"CONTRIBUTOR","body":"### Steps to Reproduce\r\n\r\n1. Create a new Xamarin.Mac \"Bindings Library\"\r\n2. Open up the properties for the bindings project\r\n3. Set Build > General > Target Framework to \"Xamarin.Mac Full\"\r\n4. Add a Cocoa App and set its target framework to \"Xamarin.Mac Full\"\r\n5. Add a reference on the Cocoa App to the bindings library\r\n5. Compile (broken!)\r\n\r\n### Expected Behavior\r\nYou should be able to create a bindings library for either \"modern\" or \"full\" frameworks, *and* compile them.\r\n\r\n### Actual Behavior\r\nIt only works for the \"modern\" framework. \r\n\r\n### Environment\r\n\r\n```\r\n=== Visual Studio Professional 2017 for Mac ===\r\n\r\nVersion 7.3.3 (build 23)\r\nInstallation UUID: d9050f0b-87f7-4e38-9d83-c01eaf2f82fc\r\nRuntime:\r\n\tMono 5.4.1.7 (2017-06/e66d9abbb27) (64-bit)\r\n\tGTK+ 2.24.23 (Raleigh theme)\r\n\r\n\tPackage version: 504010007\r\n\r\n=== NuGet ===\r\n\r\nVersion: 4.3.1.4445\r\n\r\n=== .NET Core ===\r\n\r\nRuntime: /usr/local/share/dotnet/dotnet\r\nRuntime Versions:\r\n\t2.0.5\r\n\t2.0.0\r\n\t2.0.0-preview1-002111-00\r\n\t2.0.0-beta-001791-00\r\n\t1.1.1\r\n\t1.1.0\r\n\t1.0.4\r\nSDK: /usr/local/share/dotnet/sdk/2.1.4/Sdks\r\nSDK Versions:\r\n\t2.1.4\r\n\t2.0.0\r\n\t2.0.0-preview1-005977\r\n\t2.0.0-preview1-005645\r\n\t1.0.1\r\n\t1.0.0-preview2-1-003177\r\nMSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Sdks\r\n\r\n=== Xamarin.Profiler ===\r\n\r\nVersion: 1.6.0\r\nLocation: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler\r\n\r\n=== Apple Developer Tools ===\r\n\r\nXcode 9.2 (13772)\r\nBuild 9C40b\r\n\r\n=== Xamarin.iOS ===\r\n\r\nVersion: 11.6.1.4 (Visual Studio Professional)\r\nHash: db807ec9\r\nBranch: xcode9.2\r\nBuild date: 2018-01-10 16:45:48-0500\r\n\r\n=== Xamarin.Android ===\r\n\r\nNot Installed\r\n\r\n=== Xamarin.Mac ===\r\n\r\nVersion: 4.0.0.216 (Visual Studio Professional)\r\n\r\n=== Xamarin Inspector ===\r\n\r\nVersion: 1.4.0\r\nHash: b3f92f9\r\nBranch: master\r\nBuild date: Fri, 19 Jan 2018 22:00:34 GMT\r\nClient compatibility: 1\r\n\r\n=== Build Information ===\r\n\r\nRelease ID: 703030023\r\nGit revision: e02ab111d8181ffe766c2258141282c88188ebb6\r\nBuild date: 2018-02-20 08:06:38-05\r\nXamarin addins: 5ce2b6790676a4542aa0d69d07f6a716e17d4e65\r\nBuild lane: monodevelop-lion-d15-5\r\n\r\n=== Operating System ===\r\n\r\nMac OS X 10.13.3\r\nDarwin 17.4.0 Darwin Kernel Version 17.4.0\r\n    Sun Dec 17 09:19:54 PST 2017\r\n    root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64\r\n\r\n=== Enabled user installed addins ===\r\n\r\nAddinMaker 1.4.2\r\nRhinoCommon Plugin Support 7.3.3.0\r\nInternet of Things (IoT) development (Preview) 7.1\r\n\r\n```\r\n\r\n### Build Logs\r\n\r\n```\r\nBuilding Solution: MyBindingProject (Debug)\r\n__________________________________________________\r\nProject \"/Users/curtis/Projects/MyBindingProject/MyBindingProject/MyBindingProject.csproj\" (Build target(s)):\r\n\r\n/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2003,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly \"Xamarin.Mac\". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.\r\n/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/bin/bgen  -nostdlib /v /baselib:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/4.5/Xamarin.Mac.dll /unsafe /d:\"__UNIFIED__;__MACOS__;DEBUG\" /Users/curtis/Projects/MyBindingProject/MyBindingProject/ApiDefinition.cs /s:/Users/curtis/Projects/MyBindingProject/MyBindingProject/StructsAndEnums.cs -r /mscorlib.dll -r /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/4.5-api/System.Core.dll -r /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/4.5-api/System.dll -r /mscorlib.dll /tmpdir:/Users/curtis/Projects/MyBindingProject/MyBindingProject/obj/Debug/mac/ /sourceonly:/Users/curtis/Projects/MyBindingProject/MyBindingProject/obj/Debug/mac/sources.list /target-framework=Xamarin.Mac,Version=v4.5,Profile=Full \r\nBTOUCH : error CS0006: Metadata file `/mscorlib.dll' could not be found\r\nBTOUCH : error CS0006: Metadata file `/mscorlib.dll' could not be found\r\nBTOUCH : error CS1703: An assembly `System' with the same identity has already been imported. Consider removing one of the references\r\nBTOUCH : error CS1703: An assembly `System.Core' with the same identity has already been imported. Consider removing one of the references\r\nBTOUCH : error CS0518: The predefined type `System.Object' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.ValueType' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Attribute' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Int32' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.UInt32' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Int64' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.UInt64' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Single' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Double' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Char' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Int16' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Decimal' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Boolean' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.SByte' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Byte' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.UInt16' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.String' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Enum' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Delegate' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.MulticastDelegate' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Void' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Array' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Type' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Collections.IEnumerator' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Collections.IEnumerable' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.IDisposable' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.IntPtr' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.UIntPtr' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.RuntimeFieldHandle' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.RuntimeTypeHandle' is not defined or imported\r\nBTOUCH : error CS0518: The predefined type `System.Exception' is not defined or imported\r\nDone building project \"MyBindingProject.csproj\" -- FAILED.\r\n\r\n---------------------- Done ----------------------\r\n\r\nBuild: 35 errors, 1 warning\r\n```\r\n\r\n### Example Project (If Possible)\r\n\r\n[MyBindingProject.zip](https://github.com/xamarin/xamarin-macios/files/1764172/MyBindingProject.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/comments/370033676","html_url":"https://github.com/xamarin/xamarin-macios/issues/3608#issuecomment-370033676","issue_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/3608","id":370033676,"user":{"login":"cwensley","id":367446,"avatar_url":"https://avatars2.githubusercontent.com/u/367446?v=4","gravatar_id":"","url":"https://api.github.com/users/cwensley","html_url":"https://github.com/cwensley","followers_url":"https://api.github.com/users/cwensley/followers","following_url":"https://api.github.com/users/cwensley/following{/other_user}","gists_url":"https://api.github.com/users/cwensley/gists{/gist_id}","starred_url":"https://api.github.com/users/cwensley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwensley/subscriptions","organizations_url":"https://api.github.com/users/cwensley/orgs","repos_url":"https://api.github.com/users/cwensley/repos","events_url":"https://api.github.com/users/cwensley/events{/privacy}","received_events_url":"https://api.github.com/users/cwensley/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T19:50:43Z","updated_at":"2018-03-02T19:50:43Z","author_association":"CONTRIBUTOR","body":"@chamons Thanks for the response, but this is still not working 100%.  I have updated to the Beta channel and have confirmed that the csproj has:\r\n```\r\n<UseXamMacFullFramework>True</UseXamMacFullFramework>\r\n```\r\n\r\nIt now builds, but it is not getting built with the correct target (notice TargetFramework should be `.NETFramework,Version=v4.5`):\r\n\r\n<img width=\"709\" alt=\"screen shot 2018-03-02 at 11 42 10 am\" src=\"https://user-images.githubusercontent.com/367446/36918427-c5bc5968-1e0e-11e8-85ea-1e28d1700159.png\">\r\n\r\nAlso, in VS for Mac it shows that it is an incompatible framework with the Xamarin.Mac full app:\r\n\r\n<img width=\"347\" alt=\"screen shot 2018-03-02 at 11 42 58 am\" src=\"https://user-images.githubusercontent.com/367446/36918459-e19e0a3c-1e0e-11e8-9ddc-591b58ce57ef.png\">\r\n\r\nIn looking at [Xamarin.Mac.ObjCBinding.CSharp.props](https://github.com/xamarin/xamarin-macios/blob/743c28f7e0d1c8debf83d537fb6f6fd17aae22cd/msbuild/Xamarin.Mac.Tasks/Xamarin.Mac.ObjCBinding.CSharp.props#L27-L29), it doesn't appear to handle the \"Full\" framework at all, and just defaults it to \"Mobile\"."}}
{"actor":{"display_login":"cwensley"}}