Skip to content

DeleteBinObj issue with Resources #1933

@jonathanpeppers

Description

@jonathanpeppers

Steps to Reproduce

  1. Somehow when testing/building Xamarin.Forms.ControlGallery.Android
  2. I randomly get an APT0000 error
  3. Rebuild fixes it

I am not exactly sure what step I did to cause this, the error I get is:

"C:\Users\myuser\Desktop\Git\Xamarin.Forms\Xamarin.Forms.ControlGallery.Android\Xamarin.Forms.ControlGallery.Android.csproj" (default target) (1) ->
(_UpdateAndroidResgen target) ->
  Resources\layout\NativeAndroidCell.axml(3): error APT0000: No resource found that matches the given name (at 'background' with value '@drawable/CustomSelector'). [C:\Users\myuser\Desktop\Git\Xamarin.Forms\Xamarin.Forms.ControlGallery.Android\Xamarin
.Forms.ControlGallery.Android.csproj]
  Resources\layout\NativeAndroidListViewCell.axml(3): error APT0000: No resource found that matches the given name (at 'background' with value '@drawable/CustomSelector2'). [C:\Users\myuser\Desktop\Git\Xamarin.Forms\Xamarin.Forms.ControlGallery.Androi
d\Xamarin.Forms.ControlGallery.Android.csproj]

    7 Warning(s)
    2 Error(s)

It could be related to opening the solution in VS for Windows?

In obj\Debug\res I see both customselector.xml and customselector2.xml.

Expected Behavior

I should not have to Rebuild here, this seems to be a DeleteBinObj issue.

Actual Behavior

I have to Rebuild for the project to build.

Version Information

I was using xamarin-android/master as of: 3558fd2

Log File

I zipped up the project, obj, bin, and msbuild.binlog: https://www.dropbox.com/s/6l5ak1mlqybw9k5/Xamarin.Forms.ControlGallery.Android.zip?dl=0

NOTE: Github had a 10MB limit

VS bug #652878

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: App+Library BuildIssues when building Library projects or Application projects.bugComponent does not function as intended.vs-syncFor internal use only; creates a VSTS "mirror" issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions