简体   繁体   中英

ASP.NET Custom Code Library Naming and Referencing

I'm coding against two existing versions of an old library called say Ab.Core (old) and AB.CORE (new).

In VS 2010 I get the following error when trying to add a project reference for the older library (with the newer one already referenced):

A reference to... Ab.Core could not be added. A reference to Ab.Core already exists in the project.

It's looking like VS doesn't care about case sensitivity. I have to use both versions for a while - is there some way around this or some setting I can use?

To reference two versions of assemblies that have the same fully-qualified type names,use an external assembly alias, the namespaces from each assembly can be wrapped inside root-level namespaces named by the alias, which enables them to be used in the same file.

http://msdn.microsoft.com/en-us/library/ms173212(v=vs.100).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM