当我添加Microsoft.WindowsMobile.Status;参考和代码
private SystemState displayRotationState = new SystemState(SystemProperty.DisplayRotation);
我得到了
Error 1 The type 'Microsoft.WindowsMobile.IApplicationLauncher' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.WindowsMobile, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. C:\Projekti\Skladiscenje\Skladiscenje\Skladiscenje\CustomForms\NonFullscreenForm.cs 12 25 Skladiscenje
有什么问题以及如何解决?
答案 0 :(得分:2)
正如错误清楚地告诉您的那样,您还应该添加对程序集的引用:
Microsoft.WindowsMobile
执行此操作后,它应该工作,操作,至少编译:)