[英]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.