microsoft.visualbasic.fileio不存在 [英] microsoft.visualbasic.fileio does not exist

查看:1415
本文介绍了microsoft.visualbasic.fileio不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.NET框架4.0,建设2012年的VisualStudio C#的Web应用程序我有Microsoft.VisualBasic程序加入到项目的引用。我有以下行代码的麻烦:



使用Microsoft.VisualBasic.FileIO;



构建解决方案将返回错误:类型或命名空间名称FileIO专注'不命名空间中存在'Microsoft.VisualBasic程序(是否缺少程序集引用)



我有删除并重新添加引用到装配Microsoft.VisualBasic程序,但仍然得到错误。 Microsoft.VisualBasic程序是在GAC,以及Microsoft.VisualBasic.Compatibility,Microsoft.VisualBasic.Compatibility,Microsoft.VisualBasic.PowerPacks.Vs和Microsoft.VisualBasic.Vsa



请让我知道如何让VS2012识别FileIO专注命名空间。


解决方案

  1. 在你的项目上右键单击,然后选择添加引用...


  2. 在参考管理器,展开组件,然后选择框架。然后检查Microsoft.VisualBasic程序的复选框,然后单击确定。



I am on .NET Framework 4.0, building a C# web application in VisualStudio 2012. I have Microsoft.VisualBasic added as a reference to the project. I am having trouble with the following line of code:

using Microsoft.VisualBasic.FileIO;

Building the solution returns the error: The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' (are you missing an assembly reference?)

I have removed and re-added the reference to the assembly Microsoft.VisualBasic, but still get the error. Microsoft.VisualBasic is in the GAC, as well as Microsoft.VisualBasic.Compatibility, Microsoft.VisualBasic.Compatibility, Microsoft.VisualBasic.PowerPacks.Vs, and Microsoft.VisualBasic.Vsa.

Please let me know how to get VS2012 to recognize the FileIO namespace.

解决方案

  1. Right-click on your project and select Add Reference...

  2. In the Reference Manager, expand Assemblies and select Framework. Then check the box for Microsoft.VisualBasic and click OK.

这篇关于microsoft.visualbasic.fileio不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆