Bug 23167 - XML View names not updated.
Summary: XML View names not updated.
Status: VERIFIED FIXED
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
URL:
Depends on:
Blocks:
 
Reported: 2014-09-18 17:35 UTC by Jonathan Pryor
Modified: 2014-11-21 16:05 UTC (History)
2 users (show)

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


Attachments
Scratch.UpdateAllXmlRefs.zip (18.21 KB, application/zip)
2014-09-18 17:35 UTC, Jonathan Pryor
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 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:
Status:
VERIFIED FIXED

Description Jonathan Pryor 2014-09-18 17:35:02 UTC
Created attachment 8113 [details]
Scratch.UpdateAllXmlRefs.zip

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
    xbuild

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 
https://gist.github.com/pjcollins/a7d1e71035d0890bb79d
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