简体   繁体   English

Global.Micrsoft.VisualBasic.ApplicationsServices ...未定义错误BC30002

[英]Global.Micrsoft.VisualBasic.ApplicationsServices... is not defined error BC30002

I'm converting some old legacy VB apps from .NET framework to .NET 5, and have worked through most of the issues, however, I'm lost on these:我正在将一些旧的遗留 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 is included in the project. VisualBasic 10.3.0 package 包含在项目中。

Any tips are appreciated.任何提示表示赞赏。

Thanks, Bill谢谢,比尔

I came accross the same issue today trying to update a .net framework (4.6 but I guess it applies to 4.x generally) to .net 5 using Microsofts Upgrade assistent.我今天遇到了同样的问题,尝试使用 Microsoft 升级助手将 .net 框架(4.6,但我猜它通常适用于 4.x)更新为 .net 5。

I found the solution in this bug report on github :在 github 的这个错误报告中找到了解决方案:

Simply put, add the following to your newly created .vbproj-file :简单地说,将以下内容添加到新创建.vbproj-file

<PropertyGroup>
  <MyType>Empty</MyType>
</PropertryGroup>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM