Bug 23167 - XML View names not updated.
Summary: XML View names not updated.
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.18.0
Hardware: PC Mac OS
: Highest blocker
Target Milestone: 5.0
Assignee: dean.ellis
Depends on:
Reported: 2014-09-18 17:35 UTC by Jonathan Pryor
Modified: 2014-11-21 16:05 UTC (History)
2 users (show)

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

Scratch.UpdateAllXmlRefs.zip (18.21 KB, application/zip)
2014-09-18 17:35 UTC, Jonathan Pryor

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 Jonathan Pryor 2014-09-18 17:35:02 UTC
Created attachment 8113 [details]

Library projects containing Resource XML isn't being properly updated. (This is a "dupe"/"regression" from some other bug, I'm sure, but I can't find the bug number at the moment.)

To reproduce:

1. Download Scratch.UpdateAllXmlRefs.zip

2. Extract:

    unzip Scratch.UpdateAllXmlRefs.zip

3. Build

    cd Scratch.UpdateAllXmlRefs

4. Edit/view: Scratch.UpdateAllXmlRefs/Scratch.Views/obj/Debug/res/layout/myactivity.xml

Expected results (4.16): it should be using the ACW name scratch.views.MyView.

Actual results (4.18, master): It's using the original C# name Scratch.Views.MyView.
Comment 1 Jonathan Pryor 2014-09-18 17:39:49 UTC
(4) rephrased:

    grep Scratch.Views.MyView \ Scratch.UpdateAllXmlRefs/Scratch.UpdateAllXmlRefs/obj/Debug/__library_projects__/Scratch.Views/library_project_imports/res/layout/myactivity.xml 

should find NO matches.

(Also, original (4) is wrong; Scratch.UpdateAllXmlRefs/Scratch.Views/obj/Debug/res/layout/myactivity.xml has the "wrong" contents, but it doesn't matter; what matters is what's in the Application project, which is Scratch.UpdateAllXmlRefs/Scratch.UpdateAllXmlRefs/obj/Debug/__library_projects__/Scratch.Views/library_project_imports/res/layout/myactivity.xml .)
Comment 2 dean.ellis 2014-09-19 16:35:25 UTC
fixed in monodroid/master/60816360
Comment 3 Peter Collins 2014-11-21 15:55:22 UTC
The resource name in master is now producing a hash rather than scratch.views.MyView: 
>  <md5b1bd2a310d7d735bdbe6ad79a6707159.MyView 
Comment 4 Peter Collins 2014-11-21 16:05:09 UTC
Comment #3 is invalid, the hash change is the new expected behavior due to a change in ACW name generation