Bug 20164 - PNG file Build Action automatically set to BundleResource
Summary: PNG file Build Action automatically set to BundleResource
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 3.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Vinicius Jarina
URL:
Depends on:
Blocks:
 
Reported: 2014-05-29 15:14 UTC by Allie Miller
Modified: 2015-07-14 15:20 UTC (History)
6 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 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 Allie Miller 2014-05-29 15:14:39 UTC
*Reported on behalf of a user*

*Observed behavior*
When adding a png file into the resource folder of a project, the Build Action is now being set to BundleResource. This results in the file not being added to Resource.Drawable as a property. Additionally, when the user adds a new Android Layout File from the File Wizard, it gets marked as a BundleRsource and not an AndroidResource

*Versioning Information*
Microsoft Visual Studio Professional 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0444002-02489
Microsoft LightSwitch for Visual Studio 2013

Office Developer Tools - May 2014 Update ENU   06177-004-0444002-02489
Microsoft Office Developer Tools for Visual Studio 2013 - May 2014 Update ENU

Team Explorer for Visual Studio 2013   06177-004-0444002-02489
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0444002-02489
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0444002-02489
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0444002-02489
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0444002-02489
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02489
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0444002-02489
Windows Phone SDK 8.0 - ENU

ASP.NET and Web Tools   2013.2.50425
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.1.20409.0
For additional information, visit http://www.asp.net/

CodeMaid   #114
CodeMaid is an open source Visual Studio extension to cleanup, dig through and simplify our C#, C++, F#, VB, XAML, XML, ASP, HTML, CSS, LESS, JavaScript and TypeScript coding.

Written by Steve Cadwallader, for more information visit http://www.codemaid.net/

Common Azure Tools   1.1
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Python Tools for Visual Studio   2.0.11016.00
Python Tools for Visual Studio provides intellisense, project support, project and item templates, as well as a REPL window for Python development.

Microsoft Python Tools for Visual Studio - Django Integration   2.0.11016.00
Provides templates and integration for the Django web framework.

Microsoft Python Tools for Visual Studio - Profiling Support   2.0.11016.00
Profiling support for Python projects.

NuGet Package Manager   2.8.50313.46
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PostSharp   3.1.41.0

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SAPReferenceManager   1.0
Manages References to Shared Projects

SQL Server Data Tools   12.0.30919.1
Microsoft SQL Server Data Tools

Windows Azure Mobile Services Tools   1.1
Windows Azure Mobile Services Tools

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.0.54.0 (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android

Xamarin.Android   4.12.4.20 (b5dc5ce91305e19de51d71a1122c109719c4bc34)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   3.0.54.0 (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS
Comment 1 Dominique Louis 2014-05-30 08:00:39 UTC
I've assigned this to Vinicius as he did some work on this previously.
Comment 2 Vinicius Jarina 2014-06-11 11:32:59 UTC
Hi Alley

Can you ask the user to provide more info.

I've tested here and add PNG file to AndroidProject seems to working fine.

http://screencast.com/t/Qo4effHfFT14
Comment 3 Adam Greene 2014-06-11 11:52:13 UTC
Copy and paste the file.  If you go into Windows Explorer, find the file, press Ctrl+C, switch to Visual Studio and paste the file into the Resources/drawables folder, you get the wrong build action.

Also adding a new AXML file (right click resource/layout folder and select new file, select Android layout), it sets the build action wrong as well.
Comment 4 Vinicius Jarina 2014-06-11 15:04:39 UTC
Sorry Adam.

I couldn't repro :(

http://screencast.com/t/RMM1Kgptbm

Any other idea?
Comment 5 Parmendra Kumar 2015-07-14 08:33:39 UTC
I have checked this issue and its working fine at my end. I am getting same behavior as mentioned in comment #4.

Hence closing this issue.

If you getting same issue anymore please feel free to reopen this issue.

Environment info: 

Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4
Microsoft .NET Framework
Version 4.5.51641
Installed Version: Professional
Xamarin   3.11.666.0 
Xamarin.Android   5.1.4.16 
Xamarin.iOS   8.10.2.0
Comment 6 Adam Greene 2015-07-14 08:48:41 UTC
This is still an issue for me.  To see that, here is a screencast:

http://screencast.com/t/ubvewr58
Comment 7 Adam Greene 2015-07-14 08:50:35 UTC
I should have specified that this is the latest release for Xamarin for Visual Studio:

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51650

Installed Version: Professional

Xamarin   3.11.666.0 (ebae43a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.4.16 (5f55a9ef61c11b6ce0890bc91e4c71b1b92be214)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense   1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS   8.10.2.0 (67b390d0d1bd741582cf7b7fd3ffea08583a3f83)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 8 Parmendra Kumar 2015-07-14 14:48:58 UTC
I have checked this issue and still unable to reproduce this issue. To reproduce this issue I have followed steps:
1. Create a Android App( File->New->Project->Android->Blank App)
2. Add a new .axml file in layout folder

Observed that the Build Action is AndroidResource

3. Add a .png image in drawable folder

Observed that the Build Action is AndroidResource

Screencast: http://www.screencast.com/t/D65lrBNRAe

Note: I have also tried with copy/paste .png image and used xamarin.Forms sample for reproduce this issue.

@Adam, Could you please let me know that this issue happening with every sample or some specific sample? if this issue exist with specific sample then it would be great if you share it with us. Or I have to follow some other steps to reproduce this issue.

Thanks!!
Comment 9 Adam Greene 2015-07-14 15:20:23 UTC
There isn't anything special, it always get the build type wrong for anything in the resources folder (regardless if I copy paste, or create new).