Visual Studio 2017 intellisense underline all dimension resources in my cs code with the error: Resource.Dimension does not contain a definition for...
Intellisense offer me only standard dimensions properties.
File with my dimensions is placed in Resources\values\dimens.xml.
This file has following content:
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<dimen name="main_text_item_size">17dp</dimen>
</resources>
All others resources are okay and I can work with them without any problem.
My configuration: VS 2017, jdk1.8.0_172
References: Xamarin.Android.Support.v7.AppCompat v27.0.2, Xamarin.Android.Support v27.0.2
The one solution that I found is copying my Resource.Designer.cs file to ../obj/debug/designtime location where I overwrite original file.
And now everything is OK and I do not have any underlined resource properties in my cs files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With