添加 Microsoft.WindowsMobile.Status 时出现问题
当我添加 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
什么问题以及如何解决它?
when i add Microsoft.WindowsMobile.Status; reference and code
private SystemState displayRotationState = new SystemState(SystemProperty.DisplayRotation);
i get
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
what is wrong and how to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如错误清楚地告诉您的那样,您还应该添加对程序集的引用:
执行此操作后,它应该可以工作,操作,至少编译:)
As the error clearly tells you, you should also add a reference to the assembly:
after you do this it should work, ops, compile at least :)