By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,476 Members | 889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,476 IT Pros & Developers. It's quick & easy.

Can't get rid of references

P: n/a
I have converted a vb6 dll into vb.net and gone through all of the code and
changed it to .net format. I have attempted to get rid of all Interop code
so that the dll will compile with only .net classes. I still have Interop
assemblies referenced and I do not know how to locate the code that is
preventing me from removing them from my application. Any assistance is
truly apprreciated.

--
Charlie Jursch
Patotech Software, Inc.
Danville, CA
Apr 3 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Code preventing you from removing them? Huh?

What do you mean you "can't" get rid of the references? You just select the
reference and remove it.

"Charlie J" <Ch******@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
I have converted a vb6 dll into vb.net and gone through all of the code and
changed it to .net format. I have attempted to get rid of all Interop
code
so that the dll will compile with only .net classes. I still have Interop
assemblies referenced and I do not know how to locate the code that is
preventing me from removing them from my application. Any assistance is
truly apprreciated.

--
Charlie Jursch
Patotech Software, Inc.
Danville, CA

Apr 3 '06 #2

P: n/a
Charlie,

Have a look in the Solution Explorer (mostly at the right side of your
screen docked), click on tab ot that Show All files and click than at
references, that is the place where you see them.

I hope this helps,

Cor

"Charlie J" <Ch******@discussions.microsoft.com> schreef in bericht
news:C3**********************************@microsof t.com...
I have converted a vb6 dll into vb.net and gone through all of the code and
changed it to .net format. I have attempted to get rid of all Interop
code
so that the dll will compile with only .net classes. I still have Interop
assemblies referenced and I do not know how to locate the code that is
preventing me from removing them from my application. Any assistance is
truly apprreciated.

--
Charlie Jursch
Patotech Software, Inc.
Danville, CA

Apr 3 '06 #3

P: n/a
When I click on the reference and click the Remove menu item nothing happens.
The reference stays there. I am assuming that the reason I cannot get rid
of the reference is that there is code that still requires it. If this is
not true then why would the references not be removable?
--
Charlie Jursch
Patotech Software, Inc.
Danville, CA
"Marina Levit [MVP]" wrote:
Code preventing you from removing them? Huh?

What do you mean you "can't" get rid of the references? You just select the
reference and remove it.

"Charlie J" <Ch******@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
I have converted a vb6 dll into vb.net and gone through all of the code and
changed it to .net format. I have attempted to get rid of all Interop
code
so that the dll will compile with only .net classes. I still have Interop
assemblies referenced and I do not know how to locate the code that is
preventing me from removing them from my application. Any assistance is
truly apprreciated.

--
Charlie Jursch
Patotech Software, Inc.
Danville, CA


Apr 3 '06 #4

P: n/a
No, the IDE doesn't lock references just because code somewhere requires it.
It will let you remove the reference, and then your code just won't compile.

I haven't worked too much with the properties window in 2005 as far as
references. You can follow Cor's instructions on how to see the list of
references in Solution Explorer (which is the way I do it as well). Then you
can select the reference and hit the Delete key, or right click on it and
delete it that way.

"Charlie J" <Ch******@discussions.microsoft.com> wrote in message
news:E3**********************************@microsof t.com...
When I click on the reference and click the Remove menu item nothing
happens.
The reference stays there. I am assuming that the reason I cannot get rid
of the reference is that there is code that still requires it. If this is
not true then why would the references not be removable?
--
Charlie Jursch
Patotech Software, Inc.
Danville, CA
"Marina Levit [MVP]" wrote:
Code preventing you from removing them? Huh?

What do you mean you "can't" get rid of the references? You just select
the
reference and remove it.

"Charlie J" <Ch******@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
>I have converted a vb6 dll into vb.net and gone through all of the code
>and
> changed it to .net format. I have attempted to get rid of all Interop
> code
> so that the dll will compile with only .net classes. I still have
> Interop
> assemblies referenced and I do not know how to locate the code that is
> preventing me from removing them from my application. Any assistance
> is
> truly apprreciated.
>
> --
> Charlie Jursch
> Patotech Software, Inc.
> Danville, CA


Apr 3 '06 #5

P: n/a
"Charlie J" <Ch******@discussions.microsoft.com> schrieb:
I have converted a vb6 dll into vb.net and gone through all of the code and
changed it to .net format. I have attempted to get rid of all Interop
code
so that the dll will compile with only .net classes. I still have Interop
assemblies referenced and I do not know how to locate the code that is
preventing me from removing them from my application. Any assistance is
truly apprreciated.


If the tips given by the others do not work, backup the project file (VBPROJ
file), open it in notepad and remove the reference there. When opening the
project afterwards you may have to fix the lines which are relying on the
reference.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Apr 3 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.