“计算机不是我的成员".NET错误

编程入门 行业动态 更新时间:2024-10-26 02:31:06
本文介绍了“计算机不是我的成员".NET错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

此错误异常烦人.我已经进行了各种搜索,并且能够解决此问题.我是该应用程序的几个开发人员之一,并且是唯一一个有此问题的开发人员.我已通过在项目属性的我的扩展"面板中添加一个扩展(会生成一个不同的错误),然后删除该新扩展来临时修复它.那使错误消失了.片状,是吗?

This error is exceptionally annoying. I've done various searches, and have been able to fix this issue. I am one of several developers on the application and the only one with the issue. I've fixed it before temporarily by adding an extension to the My Extensions panel in the project's properties (which generates a different error) and then removing that new extension. That made the error go away. Flaky, eh?

无论如何:

If Not My.Computer.Network.IsAvailable Then ISConnectedToNetwork = False ... End If

给出错误:

计算机"不是我"的成员.

'Computer' is not a member of 'My'.

说明这是在.NET 2.0中.

Clarification This is in .NET 2.0.

推荐答案

我能够以另一种混乱且可能是暂时的方式修复此小错误.

I was able to fix this little bug in another messed up and probably temporary way.

根据Pete的见解,我将项目的应用程序类型从类库设置为 Windows窗体应用程序.

Working off of Pete's insight, I set the project's Application Type from Class Library to Windows Forms Application.

我在这一点上进行了构建,由于关于未实现"Main"的一些错误而导致构建失败.好的,所以我将其设置回类库".

I did a build at this point which failed due to some error about not having "Main" implemented. Okay, so I set it back to Class Library.

再次建立.成功.

SIGH

SIGH

更多推荐

“计算机不是我的成员".NET错误

本文发布于:2023-11-10 03:13:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1574194.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:成员   错误   计算机   quot   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!