Bug 10626 - [VS] Designer does not modify Resource.Designer.cs when adding widgets
Summary: [VS] Designer does not modify Resource.Designer.cs when adding widgets
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.6.x
Hardware: PC Windows
: High critical
Target Milestone: 4.6
Assignee: Dominique Louis
Depends on:
Reported: 2013-02-24 18:02 UTC by PJ
Modified: 2013-03-05 08:29 UTC (History)
3 users (show)

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

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 or GitHub 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:

Description PJ 2013-02-24 18:02:41 UTC
In VS2012, the designer is not modifying the Resource.Designer.cs file.

Steps to reproduce:
1) Open a new Android Application
2) Open main.axml in the Android Designer
3) Add a button
4) Save
5) Open Resource.Designer.cs

Expected behavior:
A line should be generated with the id button1 and the appropriate value

Actual behavior:
Nothing is generated.

Screencast showing behavior:

This behavior does not occur on X.S.

Windows 7 x64
Comment 1 PJ 2013-02-25 12:51:22 UTC
Another nasty one. This one warrants a quick release.
Comment 2 Dominique Louis 2013-02-25 13:47:33 UTC
Following the step above, this works in both VS2010 and VS2012 but only once a build is kicked off.

So it definitely only updates the Resource.Designer.cs file after a build.

Whether that syncing should happen before building, I suppose is another issue.
Comment 3 PJ 2013-02-25 14:02:00 UTC
Visual Studio does not automatically update the Resource.Designer.cs file.
Comment 4 Atin 2013-03-05 08:29:54 UTC
As per Comment#2 Resource.designer does not update automatically. It updates when user build the solution after adding widget to .axml file. We have checked it on following environment:

VS 2012/2010
MFA 4.6.01042

Changing the status to Verified.