Adding folder in Resource folder, then adding XML file - Intellisense stops working - Xamarin Android VS 15

穿精又带淫゛_ 提交于 2019-12-12 06:47:05

问题


Ok, I have a problem. I'm working on Xamarin Android VS 15. I added a folder called "menu" to my resources folder, and added an XML file in it. Initially, on my MainActivity, I was unable to find the Menu folder or the XML file in it. "Resource does not contain attribute 'menu'".

I went through many stackoverflow and xamarin forum threads, and followed several tips.

1)Clean and Rebuild. 2)Delete obj and bin. 3)Check buildaction on the created file. 4)Delete Appdata/Local/Xamarin.

The fourth tip worked. I am now able to find my newly created "menu" folder and the files in it, but a new problem arose.

My intellisense has stopped working. Autocomplete of android syntax and methods is not working in either AXML or my CS files, ONLY FOR THIS SPECIFIC PROJECT. The normal green/blue color on my Xamarin/Android syntax is not appearing either. On my other projects, my intellisense works absolutely fine.

This has happened to me before as well, and I need your help to fix this. It seems, SOMETIMES, when I create new Resource folders and files, my intellisense stops working automatically.

Can anybody please tell me why this could be, and how I can fix it?

Thanks and Regards,

Aditya

来源:https://stackoverflow.com/questions/42467698/adding-folder-in-resource-folder-then-adding-xml-file-intellisense-stops-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!