最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】VB.Net中导入System.Core出错:Namespace or type specified in the Imports System.Core doesnot contain any public member or cannot be found

VB.Net crifan 2631浏览 0评论

【问题】

在折腾:

【已解决】VB.Net中出错:XML literals and XML axis properties are not available. Add reference to System.xml System.xml.linq and System.Core

的过程中,在新建的VB.Net 4.0的项目中,使用代码:

Imports System.Text.RegularExpressions
Imports System.Xml
Imports System.Xml.Linq
Imports System.Core

结果出错:

Namespace or type specified in the Imports System.Core doesnot contain any public member or cannot be found

Namespace or type specified in the Imports System.Core doesnot contain any public member or cannot be found

【解决过程】

1.去试了试,果然此处真的木有System.Core:

no system.core

2.而且,经过验证,此处删掉这个

System.Core

对于后面的代码,貌似也没任何影响。

 

【总结】

不要轻易随便就相信别人的代码,还是要自己手动实践才可以的。

此处就是,System.Core,在VB.Net 4.0中,根本就没有这个东西。所以,也不需要导入这个东西。

转载请注明:在路上 » 【已解决】VB.Net中导入System.Core出错:Namespace or type specified in the Imports System.Core doesnot contain any public member or cannot be found

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.166 seconds, using 21.93MB memory