I have a Windows Mobile application in which I want to check the orientation of a device. Therefore, I wrote the following property in one of my forms:
internal static Microsoft.WindowsCE.Forms.ScreenOrientation DeviceOriginalOrientation { get; private set; }
The strange thing is that after this, when I open the UserControl, the designer shows this warning, even if this UserControl does not use the property:
Failed to load file or assembly "Microsoft.WindowsCE.Forms, Version = 3.5.0.0, Culture = neutral, PublicKeyToken = 969db8053d3322ac" or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Commenting on the above property will disable the warning and display the user control again. The application was successfully created and works without problems in both cases.
Does anyone know why this is happening and how I can fix it?
c # visual-studio-2008 compact-framework
mrtaikandi
source share