开发者

How to make a vb.net see a vb 2005 class assembly

I am a java developer that inherited a vb.net web application. This app开发者_Go百科 relies on a VB class assembly that builds in to a dll. I have made some changes to this class assembly but I cant seem to get the vb.net app to pick up the changes. I thought that using regsvr32.exe or regasm.exe would do the trick but after reading a bit more they don't appear to do what I need.

When vb.net uses code such as this import where is it getting the reference to "MyClassName"?

<% Import namespace="MyClassName" %>


The reference is not done with Import. References are set in the virtual project properties. You should see the destination of your reference there.

You need two parts:

  1. A reference in project properties
  2. An Import of the namespace of your loaded assembly.

A reference could be a reference to an existing project or a reference to an existing dll.


How to: Add or Remove References in Visual Studio:

http://msdn.microsoft.com/en-us/library/wkze6zky.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜