Bug 52260 - Adding event to a button via the property panel generated incorrect code in the designer.cs file
Summary: Adding event to a button via the property panel generated incorrect code in t...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-02-02 19:34 UTC by Kyle White
Modified: 2017-02-02 21:13 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
ZipLogs! (80.42 KB, application/x-zip-compressed)
2017-02-02 19:34 UTC, Kyle White
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description Kyle White 2017-02-02 19:34:06 UTC
Created attachment 19702 [details]
ZipLogs!

# Repro
1) Create a new iOS app
2) It builds successfully
3) Open Main.storyboard and add a Button
4) Select the button, and go to property panel, add an event
5) Build again

Actual result:
Build fails, ViewController.designer.cs which is generated code fails to compile

Expected result:
Should be able to compile, all generated code should be correct

Screencast: https://www.screencast.com/t/yFAZ45v7s
Logs attached.

# About
Microsoft Visual Studio Enterprise 2017 RC
Version 15.0.26131.1 D15REL
Microsoft .NET Framework
Version 4.6.01586

Xamarin   4.3.0.624 (e1ab15d)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.1.0.30 (3cde9f7)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.4.0.97 (2bcf787)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Alan McGovern 2017-02-02 21:13:04 UTC
https://devdiv.visualstudio.com/DevDiv/_workitems?id=374472&_a=edit

Already fixed in newer builds.
Comment 2 Alan McGovern 2017-02-02 21:13:51 UTC
These kinds of issues are caught on mac, but it's a VS2017/Roslyn specific regression and our tests aren't run in that context so we could never detect it.