Bug 2744 - Default Build action for .xml/.axml resource files should be AndroidResource
Summary: Default Build action for .xml/.axml resource files should be AndroidResource
Status: RESOLVED DUPLICATE of bug 2306
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2012-01-05 09:20 UTC by Jonathan Pryor
Modified: 2016-08-03 15:37 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED DUPLICATE of bug 2306

Description Jonathan Pryor 2012-01-05 09:20:38 UTC
Scenario:

 1. Create a new Mono for Android project within MonoDevelop
 2. Within the Solution panel, expand the Project\Resource\layout tree.
 3. Right-click the layout folder, click Add > New File...
 4. Add a .axml file:
   a: The Mono for Android section doesn't have any XML/.axml entries;
      perhaps we should add one?
   b: Select the XML > Empty XML File type, and enter a filename (Foo.axml)

At this point, the Resources\layout\Foo.axml file has a Build action of Nothing. This requires that the user manually set the build action, which is silly. :-)

Alternatively, _everything_ added under the Resources folder should have a build action of AndroidResiource, including both .xml and .axml files.
Comment 1 Mikayla Hutchinson [MSFT] 2012-01-05 16:00:09 UTC

*** This bug has been marked as a duplicate of bug 2306 ***