{"action":"opened","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1796","repository_url":"https://api.github.com/repos/xamarin/xamarin-android","labels_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1796/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1796/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1796/events","html_url":"https://github.com/xamarin/xamarin-android/issues/1796","id":330763737,"node_id":"MDU6SXNzdWUzMzA3NjM3Mzc=","number":1796,"title":"Intellisense can't recongize  'Resource.Dimension'  definition","user":{"login":"jassmith","id":30443,"node_id":"MDQ6VXNlcjMwNDQz","avatar_url":"https://avatars2.githubusercontent.com/u/30443?v=4","gravatar_id":"","url":"https://api.github.com/users/jassmith","html_url":"https://github.com/jassmith","followers_url":"https://api.github.com/users/jassmith/followers","following_url":"https://api.github.com/users/jassmith/following{/other_user}","gists_url":"https://api.github.com/users/jassmith/gists{/gist_id}","starred_url":"https://api.github.com/users/jassmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jassmith/subscriptions","organizations_url":"https://api.github.com/users/jassmith/orgs","repos_url":"https://api.github.com/users/jassmith/repos","events_url":"https://api.github.com/users/jassmith/events{/privacy}","received_events_url":"https://api.github.com/users/jassmith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T18:43:39Z","updated_at":"2018-06-08T18:43:39Z","closed_at":null,"author_association":"MEMBER","body":"_From @aixiaozi on May 28, 2018 9:49_\n\n<!-- Bug report best practices: https://github.com/xamarin/Xamarin.Forms/wiki/Submitting-Issues -->\r\n\r\n### Description\r\n\r\nI created some 'Resource.Dimension'  resource but Visual Studio 2017 intellisense can't recongize it. Underline all dimension resources in my cs code with the error: \r\n\r\n     `Resource.Dimension` does not contain a definition for...\r\n\r\nIntellisense offer me only standard dimensions properties.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a blank Xamarin.Android project\r\n\r\n2. Add dimens value in Resources\\values\\dimens.xml\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n<resources>\r\n    <dimen name=\"fab_margin\">16dp</dimen>\r\n\r\n  <dimen name=\"main_text_item_size\">17dp</dimen>\r\n</resources>\r\n\r\n```\r\n\r\n3. Use it in MainActivity:\r\n\r\n```\r\nvar a = Resources.GetDimension(Resource.Dimension.fab_margin);\r\n```\r\n![a](https://user-images.githubusercontent.com/18043540/40608828-63110f90-629f-11e8-9f7c-f0fa9cc1cc92.PNG)\r\n\r\n\r\n\r\n### Expected Behavior\r\nWithout intellisense error\r\n\r\n\r\n### Actual Behavior\r\nHas intellisense error but could run application without a problem and problem persists.\r\n\r\n### Basic Information\r\n- IDE: VS 2017 15.7.2\r\n- Platform Target Frameworks: <!-- All that apply -->\r\n- Android: Android Target Version: 27\r\n- Android Support Library Version: the latest version: 27.0.2\r\n\r\nTried clean solution, delete bin&obj folder, problem exists. And I could found `Resource.Dimension` resource in `Resource.Designer.cs` file:\r\n\r\n![2](https://user-images.githubusercontent.com/18043540/40608779-39b759c4-629f-11e8-9a74-ffc2102d6d22.PNG)\r\n\r\n\r\n\r\n\r\n### Screenshots\r\n![a](https://user-images.githubusercontent.com/18043540/40608548-5f3983b2-629e-11e8-805a-d5f0750470f1.PNG)\r\n\r\n\r\n\r\n\n\n_Copied from original issue: xamarin/Xamarin.Forms#2846_"}}
{"actor":{"display_login":"jassmith"}}