VS.NET IDE assembly references...

A

Atmapuri

Hi!

I have a C# project which references assembly myassembly.dll.
The project worked fine. Then I removed the reference from
the Reference list and added the assembly with the same name,
but an older version.

Regardless what I tried, I could not get the project reference
the new assembly. It constantly kept looking for the assembly
of the previous, as if though once added the assembly version
is hard locked to the project.

Is it possible to manually fix the project, to finally let go of
the version that is no longer present?

Thanks!
Atmapuri
 
N

Nick Malik [Microsoft]

Atmapuri said:
Hi!

I have a C# project which references assembly myassembly.dll.
The project worked fine. Then I removed the reference from
the Reference list and added the assembly with the same name,
but an older version.

Regardless what I tried, I could not get the project reference
the new assembly. It constantly kept looking for the assembly
of the previous, as if though once added the assembly version
is hard locked to the project.

Is it possible to manually fix the project, to finally let go of
the version that is no longer present?

Thanks!
Atmapuri

Is there more than one assembly in your project that depends on this
particular dll? If so, you want to make sure that you replace the reference
to the 'new' version to the reference to the 'old' version in each place.

Yes, you can update the reference. If you cannot get this to work using the
IDE, you can open your project file. It is an ascii file. Delete the lines
that reference the assembly (It's fairly self explanitory). Then restart
the project and set up the reference again.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top