Flezcano
Flezcano

Reputation: 1697

VisualBasic error in C# project

I am getting this error when trying to open a form. It cant find:

microsoft.visualbasic.PowerPacks.Vs. Version=10.0.0.0, Culture=neutral

The weird thing is, that it says Visual Basic, and I am using C#. All the other forms open fine, but not this one.

Upvotes: 0

Views: 390

Answers (1)

Servy
Servy

Reputation: 203812

The fact that an assembly happens to include "visual basic" in it's name doesn't mean it's specific to VB. All VB code, as well as C# code, (and some other languages as well) all compile down to the same intermediate language (IL) code. This idea is to encompass the ".NET languages" which, while they have a different syntax and higher level goals and intentions, have a common lower level implementation. You can use any (well, technically not any, but almost any) .NET dll from either C# or VB.

In this particular case your code is referring (possibly indirectly) to a particular .NET assembly called "microsoft.visualbasic.PowerPacks"; consequently you need to have access to that assembly for your program to run.

Upvotes: 1

Related Questions