Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Using Intellisense to override DidReceiveRemoteNotification (and a few other overrides) causes this method signature to be generated with a BlockProxy attribute that contains an unresolvable type NIDActionArity1V52:
> public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, [BlockProxy(typeof(NIDActionArity1V52))] Action<UIBackgroundFetchResult> completionHandler)
I assume this attribute can just be removed from the generated method signature, but I don't think it should be there in the first place.
This occurs with some other virtual method overrides as well. Just look in the definition for UIApplicationDelegate and any method parameter decorated with this attribute will include it in the Intellisense generated override method.
## Steps to reproduce
1. Open Visual Studio and create a new iOS project.
2. Open the AppDelegate class and use intellisense to override the DidReceiveRemoteNotification method.
Expected result: Method signature will not include the BlockProxy attribute. E.g.:
> public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler)
Actual result: Method signature does include the BlockProxy attribute with unresolvable type NIDActionArity1V52.
Issue does not occur in Xamarin Studio.
I see that NIDActionArity1V52 is part of the ObjCRuntime.Trampolines internal class when I browse the Xamarin.iOS Assembly in Xamarin Studio. However I can not find the Trampolines class when I search or browse the XI assembly using Object Browser in Visual Studio (making sure to show hidden types and members.) Here is what I see in the Assembly browser in Xamarin Studio for DidReceiveRemoteNotification:
>[Export ("application:didReceiveRemoteNotification:fetchCompletionHandler:"), Introduced (PlatformName.iOS, 7, 0, PlatformArchitecture.None, null), Unavailable (PlatformName.TvOS, PlatformArchitecture.All, null), CompilerGenerated]
>public virtual void DidReceiveRemoteNotification (UIApplication application, NSDictionary userInfo, [BlockProxy (typeof(Trampolines.NIDActionArity1V56))] Action<UIBackgroundFetchResult> completionHandler);
And in Visual Studio:
> [Introduced(PlatformName.iOS, 7, 0, PlatformArchitecture.None, null)]
> [Unavailable(PlatformName.TvOS, PlatformArchitecture.All, null)]
> public virtual void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, [BlockProxy(typeof(NIDActionArity1V52))] Action<UIBackgroundFetchResult> completionHandler);
Not sure if it matters, but notice the difference in the typeof() argument:
Microsoft Visual Studio Professional 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Installed Version: Professional
Visual Basic 2015 00322-40000-00000-AA850
Microsoft Visual Basic 2015
Visual C# 2015 00322-40000-00000-AA850
Microsoft Visual C# 2015
Visual C++ 2015 00322-40000-00000-AA850
Microsoft Visual C++ 2015
Visual F# 2015 RC 00322-40000-00000-AA850
Microsoft Visual F# 2015 RC
Windows Phone SDK 8.0 - ENU 00322-40000-00000-AA850
Windows Phone SDK 8.0 - ENU
Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 14.0.20626.0
ASP.NET and Web Tools
ASP.NET Web Frameworks and Tools 2013 5.2.30624.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Generates unit test code for methods in classes under test.
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.50616.0
Microsoft SQL Server Data Tools
Visual Studio Tools for Universal Windows Apps 14.0.23309.00 d14oob
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
Xamarin 188.8.131.52 (1cc3a99)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 184.108.40.206 (46c3f7e)
Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.iOS 220.127.116.11 (686b410)
Visual Studio extension to enable development for Xamarin.iOS.
*** Bug 44594 has been marked as a duplicate of this bug. ***
*** Bug 45395 has been marked as a duplicate of this bug. ***
*** Bug 59275 has been marked as a duplicate of this bug. ***