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:
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 the New namespace appears in the code.
- If the file is verified, go to 'obj/debug' , 'bin/debug' folders (by default they don't showup in the Xamarin studio. So open the project folder in File Explorer) - delete all the files.
- Rebuild again - it should compile like a charm. If not make sure 'obj/debug' , 'bin/debug' - folders are empty and new Resource.design.cs is included in the 'Resource' folder and rebuild again .
Android - Xamarin - The Name ‘Resource’ Does Not Exist In The Current Context / Changing Namespace Issue >>>>> Download Now
ReplyDelete>>>>> Download Full
Android - Xamarin - The Name ‘Resource’ Does Not Exist In The Current Context / Changing Namespace Issue >>>>> Download LINK
>>>>> Download Now
Android - Xamarin - The Name ‘Resource’ Does Not Exist In The Current Context / Changing Namespace Issue >>>>> Download Full
>>>>> Download LINK 7B