Android - Xamarin - The name ‘Resource’ does not exist in the current context / Changing namespace issue
ERROR: The name ‘Resource’ does not exist in the current context, CAUSE: - You tried to change namespaces in the project. Most of the time when you try to work with open source code , you might like to change the naming convention relevant to your project (depending on the license) . When you try to change namespace in the code, there are 3 major places it affects when compiling. In this 3 items are dynamically created . But they don't get modified if you make a major change like Namespace in your code. 1. Project default Namespace setting. 2. Resource.design.cs 3. obj/debug/ * 4. bin/debug/* FIX: Change the 'default namespace' setting in 'Projects' > [project name] Options - in general tab. Rebuild the project and if you get the same error again , open all the files (or Find and replace) the old Namespaces with new Namespace. Rebuild again this will create a new Resource.design.cs If the Error occurs again - Open this file and verify...