payload: {"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/3237","repository_url":"https://api.github.com/repos/xamarin/xamarin-android","labels_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/3237/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/3237/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/3237/events","html_url":"https://github.com/xamarin/xamarin-android/issues/3237","id":457081613,"node_id":"MDU6SXNzdWU0NTcwODE2MTM=","number":3237,"title":"Csc errors in Resource.designer.cs during a regular build","user":{"login":"jonathanpeppers","id":840039,"node_id":"MDQ6VXNlcjg0MDAzOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/840039?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathanpeppers","html_url":"https://github.com/jonathanpeppers","followers_url":"https://api.github.com/users/jonathanpeppers/followers","following_url":"https://api.github.com/users/jonathanpeppers/following{/other_user}","gists_url":"https://api.github.com/users/jonathanpeppers/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanpeppers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanpeppers/subscriptions","organizations_url":"https://api.github.com/users/jonathanpeppers/orgs","repos_url":"https://api.github.com/users/jonathanpeppers/repos","events_url":"https://api.github.com/users/jonathanpeppers/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanpeppers/received_events","type":"User","site_admin":false},"labels":[{"id":769337515,"node_id":"MDU6TGFiZWw3NjkzMzc1MTU=","url":"https://api.github.com/repos/xamarin/xamarin-android/labels/Area:%20App+Library%20Build","name":"Area: App+Library Build","color":"000000","default":false},{"id":349989583,"node_id":"MDU6TGFiZWwzNDk5ODk1ODM=","url":"https://api.github.com/repos/xamarin/xamarin-android/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"dellis1972","id":810617,"node_id":"MDQ6VXNlcjgxMDYxNw==","avatar_url":"https://avatars3.githubusercontent.com/u/810617?v=4","gravatar_id":"","url":"https://api.github.com/users/dellis1972","html_url":"https://github.com/dellis1972","followers_url":"https://api.github.com/users/dellis1972/followers","following_url":"https://api.github.com/users/dellis1972/following{/other_user}","gists_url":"https://api.github.com/users/dellis1972/gists{/gist_id}","starred_url":"https://api.github.com/users/dellis1972/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dellis1972/subscriptions","organizations_url":"https://api.github.com/users/dellis1972/orgs","repos_url":"https://api.github.com/users/dellis1972/repos","events_url":"https://api.github.com/users/dellis1972/events{/privacy}","received_events_url":"https://api.github.com/users/dellis1972/received_events","type":"User","site_admin":false},"assignees":[{"login":"dellis1972","id":810617,"node_id":"MDQ6VXNlcjgxMDYxNw==","avatar_url":"https://avatars3.githubusercontent.com/u/810617?v=4","gravatar_id":"","url":"https://api.github.com/users/dellis1972","html_url":"https://github.com/dellis1972","followers_url":"https://api.github.com/users/dellis1972/followers","following_url":"https://api.github.com/users/dellis1972/following{/other_user}","gists_url":"https://api.github.com/users/dellis1972/gists{/gist_id}","starred_url":"https://api.github.com/users/dellis1972/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dellis1972/subscriptions","organizations_url":"https://api.github.com/users/dellis1972/orgs","repos_url":"https://api.github.com/users/dellis1972/repos","events_url":"https://api.github.com/users/dellis1972/events{/privacy}","received_events_url":"https://api.github.com/users/dellis1972/received_events","type":"User","site_admin":false},{"login":"jonathanpeppers","id":840039,"node_id":"MDQ6VXNlcjg0MDAzOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/840039?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathanpeppers","html_url":"https://github.com/jonathanpeppers","followers_url":"https://api.github.com/users/jonathanpeppers/followers","following_url":"https://api.github.com/users/jonathanpeppers/following{/other_user}","gists_url":"https://api.github.com/users/jonathanpeppers/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanpeppers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanpeppers/subscriptions","organizations_url":"https://api.github.com/users/jonathanpeppers/orgs","repos_url":"https://api.github.com/users/jonathanpeppers/repos","events_url":"https://api.github.com/users/jonathanpeppers/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanpeppers/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/xamarin/xamarin-android/milestones/11","html_url":"https://github.com/xamarin/xamarin-android/milestone/11","labels_url":"https://api.github.com/repos/xamarin/xamarin-android/milestones/11/labels","id":4331750,"node_id":"MDk6TWlsZXN0b25lNDMzMTc1MA==","number":11,"title":"d16-3","description":"Visual Studio 2019 16.3","creator":{"login":"jonpryor","id":155958,"node_id":"MDQ6VXNlcjE1NTk1OA==","avatar_url":"https://avatars3.githubusercontent.com/u/155958?v=4","gravatar_id":"","url":"https://api.github.com/users/jonpryor","html_url":"https://github.com/jonpryor","followers_url":"https://api.github.com/users/jonpryor/followers","following_url":"https://api.github.com/users/jonpryor/following{/other_user}","gists_url":"https://api.github.com/users/jonpryor/gists{/gist_id}","starred_url":"https://api.github.com/users/jonpryor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonpryor/subscriptions","organizations_url":"https://api.github.com/users/jonpryor/orgs","repos_url":"https://api.github.com/users/jonpryor/repos","events_url":"https://api.github.com/users/jonpryor/events{/privacy}","received_events_url":"https://api.github.com/users/jonpryor/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":4,"state":"open","created_at":"2019-05-20T15:03:17Z","updated_at":"2019-06-27T16:17:40Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2019-06-17T18:17:18Z","updated_at":"2019-07-02T14:43:23Z","closed_at":null,"author_association":"MEMBER","body":"### Steps to Reproduce\r\n\r\nFiling this, as I have not figured out what is wrong yet...\r\n\r\n1. Clone [Xamarin.Forms](https://github.com/xamarin/Xamarin.Forms) or run `git clean -dxf`\r\n2. Run `Xamarin.Forms.ControlGallery.Android` -- a Xamarin.Android app project\r\n3. You might get compiler errors in activities using fields from `Resource.designer.cs`\r\n\r\n```\r\nErrors\r\n    AppCompat\\NavigationPageRenderer.cs(461,34): error CS0117: 'Resource.Attribute' does not contain a definition for 'actionBarSize' \r\n    Renderers\\ShellItemRenderer.cs(60,45): error CS0117: 'Resource' does not contain a definition for 'Layout'\r\n... plus more\r\n```\r\n\r\nRebuilding `Xamarin.Forms.ControlGallery.Android` fixes the issue.\r\n\r\nThe actual file looked like this:\r\n\r\n```csharp\r\n#pragma warning disable 1591\r\n//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n//     This code was generated by a tool.\r\n//     Runtime Version:4.0.30319.42000\r\n//\r\n//     Changes to this file may cause incorrect behavior and will be lost if\r\n//     the code is regenerated.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\n\r\n[assembly: global::Android.Runtime.ResourceDesignerAttribute(\"Xamarin.Forms.Platform.Android.Resource\", IsApplication=false)]\r\n\r\nnamespace Xamarin.Forms.Platform.Android\r\n{\r\n\t\r\n\t\r\n\t[System.CodeDom.Compiler.GeneratedCodeAttribute(\"Xamarin.Android.Build.Tasks\", \"1.0.0.0\")]\r\n\tpublic partial class Resource\r\n\t{\r\n\t\t\r\n\t\tstatic Resource()\r\n\t\t{\r\n\t\t\tglobal::Android.Runtime.ResourceIdManager.UpdateIdValues();\r\n\t\t}\r\n\t\t\r\n\t\tpublic partial class Attribute\r\n\t\t{\r\n\t\t\t\r\n\t\t\tstatic Attribute()\r\n\t\t\t{\r\n\t\t\t\tglobal::Android.Runtime.ResourceIdManager.UpdateIdValues();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tprivate Attribute()\r\n\t\t\t{\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n#pragma warning restore 1591\r\n```\r\n\r\nIn a working example, I see a lot of logs like this:\r\n```\r\n  - Not remapping resource: Animation.abc_fade_in\r\n  - Not remapping resource: Animation.abc_fade_out\r\n... plus many more\r\n```\r\nThose are absent in the failing build log.\r\n\r\n### Expected Behavior\r\n\r\nA regular build should not encounter build errors.\r\n\r\n### Actual Behavior\r\n\r\nYou get build errors in code using `Resource.designer.cs`.\r\n\r\n### Version Information\r\n\r\n@PureWeen was hitting this in VS Windows, using Xamarin.Android 9.4.0.34.\r\n\r\nI wasn't able to reproduce myself, but logs are attached.\r\n\r\n### Log File\r\n\r\nAn example of a working/non-working build in here: [aapt2.zip](https://github.com/xamarin/xamarin-android/files/3298294/aapt2.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/comments/507708734","html_url":"https://github.com/xamarin/xamarin-android/issues/3237#issuecomment-507708734","issue_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/3237","id":507708734,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNzcwODczNA==","user":{"login":"jonathanpeppers","id":840039,"node_id":"MDQ6VXNlcjg0MDAzOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/840039?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathanpeppers","html_url":"https://github.com/jonathanpeppers","followers_url":"https://api.github.com/users/jonathanpeppers/followers","following_url":"https://api.github.com/users/jonathanpeppers/following{/other_user}","gists_url":"https://api.github.com/users/jonathanpeppers/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanpeppers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanpeppers/subscriptions","organizations_url":"https://api.github.com/users/jonathanpeppers/orgs","repos_url":"https://api.github.com/users/jonathanpeppers/repos","events_url":"https://api.github.com/users/jonathanpeppers/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanpeppers/received_events","type":"User","site_admin":false},"created_at":"2019-07-02T14:43:23Z","updated_at":"2019-07-02T14:43:23Z","author_association":"MEMBER","body":"I found out how to reproduce this command-line:\r\n```\r\n> git clean -dxf\r\n> msbuild Xamarin.Forms.sln /restore /m\r\n```\r\nYou can solve the issue by either removing `/m` (builds projects in parallel), or adding `/p:AndroidUseAapt2=False`.\r\n\r\nHere is a log: [error.zip](https://github.com/xamarin/xamarin-android/files/3350628/error.zip)\r\n"}}
other: {"actor":{"display_login":"jonathanpeppers"}}