Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

microsoft.visualbasic.fileio does not exist

Tags:

c#

.net

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.

like image 891
Rob Cole Avatar asked Oct 10 '12 23:10

Rob Cole


People also ask

How do I install Microsoft VisualBasic Fileio?

Right-click on your project and select Add Reference... In the Reference Manager, expand Assemblies and select Framework. Then check the box for Microsoft. VisualBasic and click OK.

Where is Microsoft VisualBasic DLL?

So you'll find it in c:\windows\microsoft.net\framework\v2.


1 Answers

  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.

like image 143
Chris Schiffhauer Avatar answered Oct 04 '22 12:10

Chris Schiffhauer