我正在将一些旧的遗留 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 包包含在项目中。
任何提示表示赞赏。
谢谢,
账单
今天我在尝试使用 Microsoft Upgrade Assistant 将 .net 框架(4.6,但我猜它通常适用于 4.x)更新到 .net 5 时遇到了同样的问题。
我找到了解决方案github 上的这个错误报告 https://github.com/dotnet/runtime/issues/30478:
简单地说,将以下内容添加到您新创建的.vbproj-file
:
<PropertyGroup>
<MyType>Empty</MyType>
</PropertyGroup>
放置在 的末尾.vbproj-file
就在之前</Project>
结束标签。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)