Bug 18178 - Resource compiler does not check for invalid file names in raw resource folder
Summary: Resource compiler does not check for invalid file names in raw resource folder
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.12.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2014-03-05 05:02 UTC by softlion
Modified: 2014-03-05 06:27 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 for Bug 18178 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description softlion 2014-03-05 05:02:48 UTC
Steps to reproduce:
create an Android project
add a file to the "raw" resource folder (create the raw folder if needed), verify it has AndroidResource build action.
rename the file so it has a dash in it: "test-file.txt"

aapt exited with code 1

The correct result would be:
error: invalid file name => test-file.txt. must contain only [a-z0-9_.]

To get the real error I compiled the generated project with Android Studio.
Comment 1 Udham Singh 2014-03-05 06:27:49 UTC
I have checked this issue and able to reproduce. I have followed the steps
mentioned into bug description.


C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error MSB6006: "aapt.exe" exited with code 1. (MSB6006) (bug_18178)

Refer screen cast: http://screencast.com/t/Fld4ypufI9v0

Environment Info:

=== Xamarin Studio ===

Version 4.2.3 (build 59)
Installation UUID: 312d4e9a-339c-433f-a27b-88ce0777af8f
	Microsoft .NET 4.0.30319.34011
	GTK+ 2.24.22 theme: MS-Windows
	GTK# (

=== Xamarin.Android ===

Version: 4.12.0 (Trial Edition)
Android SDK: D:\SDK\AndroidSDK
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_31
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode)

=== Build Information ===

Release ID: 402030059
Build date: 2014-02-17 14:52:00Z
Xamarin addins: 3bdcc713bdc4b0c04973f3a31b6d47ad3e205962

=== Operating System ===

Windows 6.2.9200.0 (64-bit)