[英]Global.Micrsoft.VisualBasic.ApplicationsServices... is not defined error BC30002
我正在将一些旧的遗留 VB 应用程序从 .NET 框架转换为 .NET 5,并且已经解决了大部分问题,但是,我迷失了这些:
Error BC30002 Type 'Global.Microsoft.VisualBasic.ApplicationServices.ApplicationBase' is not defined.
Error BC30002 Type 'Global.Microsoft.VisualBasic.ApplicationServices.User' is not defined.
Error BC30002 Type 'Global.Microsoft.VisualBasic.Devices.Computer' is not defined.
Error BC30002 Type 'Global.Microsoft.VisualBasic.MyServices.Internal.ContextValue' is not defined.
VisualBasic 10.3.0 package 包含在项目中。
任何提示表示赞赏。
谢谢,比尔
我今天遇到了同样的问题,尝试使用 Microsoft 升级助手将 .net 框架(4.6,但我猜它通常适用于 4.x)更新为 .net 5。
我在 github 的这个错误报告中找到了解决方案:
简单地说,将以下内容添加到新创建.vbproj-file
:
<PropertyGroup>
<MyType>Empty</MyType>
</PropertryGroup>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.