https://bugzilla.novell.com/show_bug.cgi?id=653530
https://bugzilla.novell.com/show_bug.cgi?id=653530#c0 Summary: Resource IDs Are Not Generated For All Resources in Resource Folders Classification: Mono Product: MonoDroid Version: unspecified Platform: All OS/Version: Windows 7 Status: NEW Severity: Normal Priority: P5 - None Component: Tools AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=400123) --> (http://bugzilla.novell.com/attachment.cgi?id=400123) Solution that demonstrates problem User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 When menu and searchable resources (and possibly others) defined in xml files in subfolders of the Resource folder, the corresponding resource ids are not generated in the Resource.Designer.cs file. http://developer.android.com/guide/topics/resources/menu-resource.html http://developer.android.com/guide/topics/search/searchable-config.html When these resources are referenced in the application, the build process fails. Reproducible: Always Steps to Reproduce: 1. Extract and open the attached ResourceFolders solution in Visual Studio 2010 2. In the Solution Explorer, observe the additional folders and included files in the Resources folder: Resources\menu Resources\xml 3. Open the Activity2.cs file and observe the MetaDataAttribute declaration which reference resource "@xml/searchable" 4. Build the ResourceFolders project 5. Observe the error Actual Results: The following error is generated when the ResourceFolders project is built: Error 1 System.InvalidOperationException: Command failed. Command: C:\Program Files\Motorola Mobility\MOTODEV Studio for Android 2.0\android_sdk\platforms\android-8\tools\aapt "package" "-f" "-M" "AndroidManifest.xml" "-J" "src" "-F" "bin\packaged_resources" "-S" "C:\Users\Dan\Documents\Visual Studio 2010\Projects\ResourceFolders\ResourceFolders\obj\Debug\res" "-I" "C:\Program Files\Motorola Mobility\MOTODEV Studio for Android 2.0\android_sdk\platforms\android-8\android.jar" C:\Users\Dan\Documents\Visual Studio 2010\Projects\ResourceFolders\ResourceFolders\monodroid ResourceFolders Expected Results: 1. Resource.menu class should be added to the Resource.Designer.cs file a. Field mainmenu should be added to the Resource.menu class 2. Resource.xml class should be added to the Resource.Designer.cs file a. Field searchable should be added to the Resource.xml class 3. The project should build successfully -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
