Q:

Microsoft.VisualBasic.FileIO.FileSystem.DeleteDirectory versus Directory.Delete

I stumbled upon this post while researching on the Delete Directory options available under:

Microsoft.VisualBasic.FileIO.FileSystem.DeleteDirectory
Directory.Delete

Is this statement true?

"Anyone says referencing the Microsoft.VisualBasic is often undesirable from within C#. Any association with VB from within C# code strikes me as undesirable"

A:

There is nothing wrong with referencing Microsoft.VisualBasic from any .NET language. I mean, other than uneasy feelings about its name.
It contains several methods to help porting VB6 code, but it also includes a couple of interesting shortcuts, like say, the AssemblyInfo class. If you're using Windows Forms, you can gain something if you inherit from WindowsFormsApplicationBase (like easy single-instance applications, or splash screens).

