views:

28

answers:

2

I am a java developer that inherited a vb.net web application. This app 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" %>
+1  A: 

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.

Andreas Rehm
What would the project properties file be named?
Future429
+1  A: 

How to: Add or Remove References in Visual Studio:

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

AiM
Future429 - after reading your comment, I think what you're looking for is the @assembly directive, see here http://msdn.microsoft.com/en-us/library/d864zc1k.aspx
AiM