Bugs item #1086272, was opened at 2004-12-16 00:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1086272&group_id=31650

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Steven Campbell (dukeytoo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Solution task fails to find interop

Initial Comment:
Scenario:
New primary interop assemblies with support for old and
new COM type libraries (i.e. backward compatible), but
with a new .NET version number.  Visual Studio.NET
projects have references to old interops, but the new
ones have been registered using regasm.  Visual
Studio.NET works fine, i.e. it resolves and uses the
new interop.

On build machine, the new primary interop is registered
and installed in the GAC.  Nant solution task is unable
to load the new interop, because it does a registry
lookup on the old type library and finds the old
interop assemblyname, which has a different .NET
version number.  

E.g.
Type library version 1.0: PrimaryInterop = xxx, version
1.0.1234.0000 <=lookup finds this one
Type library version 1.1: PrimaryInterop = xxx, version
1.0.2345.1111 <=this is the most current one

Suggested fix: iterate "upward" through the type
library versions in the registry, until an interop is
found that can be loaded.  

Workaround: Update Visual Studio.NET references to new
interops.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1086272&group_id=31650


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to