Author Topic: Funny references in Visual Studio 2005  (Read 3976 times)

0 Members and 1 Guest are viewing this topic.

Glenn R

  • Guest
Funny references in Visual Studio 2005
« on: April 02, 2006, 07:18:32 PM »
Well, I put Vanilla 2007 onto the machine and configured it so it's working to my liking.

So, I then jump into VS2005, copy my old solution which contains about 20 projects and open it up. VS2005 asks to convert it and it does with no errors.

I then change all the references from Acad2006 to Acad2007 (acmgd.dll etc.) and then compile. No errors! Woohoo! Start debug and acad flashes up then disappears - it errors with wrong imagefileformat or something of the like. I then look at the properties of the newly attached 2007 references and VS2005 is thinking they're the 2006 ones according to the 'Path' property!?!

Has anybody had this happen to them or even heard of it?

Cheers,
Glenn.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Funny references in Visual Studio 2005
« Reply #1 on: April 02, 2006, 07:24:31 PM »
Haven't tried to use the 2007 assemblies yet, so Nope, not yet.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Glenn R

  • Guest
Re: Funny references in Visual Studio 2005
« Reply #2 on: April 02, 2006, 11:45:37 PM »
Found it. Changed the property 'Specific Version' to true.

Bobby C. Jones

  • Swamp Rat
  • Posts: 516
  • Cry havoc and let loose the dogs of war.
Re: Funny references in Visual Studio 2005
« Reply #3 on: April 03, 2006, 12:46:51 PM »
Found it. Changed the property 'Specific Version' to true.

I noticed the same thing the other day on a project, but didn't have time to research it.  Thanks for positing the fix Glenn!

I had another existing project reference the new 2007 assemblies just fine.  Any idea of why some projects have issues?  The only difference that I can immediately remember between the two projects that I've converted are that the one that had trouble with was started with references to the 2005 assemblies and the other was started with 2006.  That's just me thinking out loud of course.  I'm going to hit MSDN when I get some free time.

Free time...bwa haha ha ha aah...I crack myself up sometimes :)
Bobby C. Jones

Glenn R

  • Guest
Re: Funny references in Visual Studio 2005
« Reply #4 on: April 03, 2006, 07:12:18 PM »
Bobby,

I noticed the following when going thru this:

When in the References dialog -> .NET Tab, in vs2005, it shows the Acad2006 libraries but does NOT show the 2007 libraries.

I can only guesstimate that VS2005 is a bit smarter in finding .NET libraries than vs2003 and the 2007 libraries aren't registered or some such...just a guess.

Cheers,
Glenn.