I have the following code in the App.xaml file (simplified for clarity):
xmlns:local="clr-namespace:OpMenu_Image_Convert">
Also I have a file called OpMenu_Image_Convert.cs which contains this code:
using ...
namespace OpMenu_Image_Covert
{
#region HeaderToImageConverter
[ValueConversion(typeof(string), typeof(bool))]
public class HeaderToImageConverter : IValueConverter
{
public static HeaderToImageConverter Instance = new HeaderToImageConverter();
...
}
}
I know I've left out alot of code, but this was all tested and working until I changed the name of the namespace (and the file in which it's contained) to its new value of OpMenu_Image_Convert. Now when I attempt to run this app, I get an error:
The type or namespace name 'OpMenu_Image_Convert' could not be found (are you missing a using directive or an assembly reference?)
Any insight would be appreciated.
RonPosted Apr 16, 2012, 3:35 PM
VulpesPosted Apr 16, 2012, 1:00 PM
RonPosted Apr 16, 2012, 12:05 PM
xmlns:local="clr-namespace:OpMenu_Image_Convert">
in the App.xaml file went away, but the same error message appears in a file called App.g.cs when I debug the code.
I deleted all the files in \obj\x86\debug\ directory, because those files get rebuilt when a new build is requested. But the problem persisted. So with your help I'm making progress, but I'm still not all the way home.
VulpesPosted Apr 16, 2012, 11:12 AM
namespace OpMenu_Image_Convert