Author Topic: NET Framework version for Dll's ??  (Read 4525 times)

0 Members and 1 Guest are viewing this topic.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2132
  • class keyThumper<T>:ILazy<T>
NET Framework version for Dll's ??
« on: July 16, 2016, 03:14:29 PM »

Has anyone come across any documentation regarding the .NET Framework version used for the managed wrapper assemblies  ie: acdbmgd.dll , accoremgd.dll , acmgd.dll , acdbmgdbrep.dll etc.
for each Version of AutoCAD  ??

I can't recall seeing a listing  for which Framework is recommended to use against each AutoCAD build.

Regards,
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: NET Framework version for Dll's ??
« Reply #1 on: July 16, 2016, 04:15:12 PM »
Hi Kerry,


– AutoCAD 2005 to 2006 : .NET Framework 1.0
– AutoCAD 2007 to 2009 : .NET Framework 2.0
– AutoCAD 2010 to 2011 : .NET Framework 3.5
– AutoCAD 2012 to 2014 : .NET Framework 4.0
– AutoCAD 2015 to 2017 : .NET Framework 4.5

This table from a topic by Serge Camiré at CAdNovation

Speaking English as a French Frog

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2132
  • class keyThumper<T>:ILazy<T>
Re: NET Framework version for Dll's ??
« Reply #2 on: July 16, 2016, 04:49:31 PM »
Thank you gile . Most excellent.
... and please thank Serge.

Regards,

added: That site looks like a great reference.

« Last Edit: July 16, 2016, 04:53:03 PM by kdub »
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: NET Framework version for Dll's ??
« Reply #3 on: July 18, 2016, 05:36:20 AM »
I use .Net 3.5 for AutoCAD 2009. Here is detailed information about possibility of use of. net Framework versions (and about config-file edition when it is necessary):

http://bushman-andrey.blogspot.ru/2014/04/net-autocad-net-framework-ms-visual.html

Google translate Russian -> English (or http://www.translate.ru/ is better).
« Last Edit: July 18, 2016, 08:25:33 AM by Andrey Bushman »

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: NET Framework version for Dll's ??
« Reply #4 on: July 27, 2016, 06:19:43 AM »
Hi,

Here's a (perhaps) more readable table.

Anyway, as Andrey said, a later .NET Framework version than the one installed by AutoCAD can be used (e.g. AutoCAD 2007 application against Framework 4.0 with Visual Studio 2015). It just needs to care if this Framework version is installed on the client station.

PS: AutoCAD 2012 apps can be build against .NET Framework 3.5 (VS 2008) even if A2012 installs FW 4.0, the same for A 2017 and FW 4.5.
« Last Edit: July 27, 2016, 06:28:15 AM by gile »
Speaking English as a French Frog

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2132
  • class keyThumper<T>:ILazy<T>
Re: NET Framework version for Dll's ??
« Reply #5 on: July 27, 2016, 06:33:25 AM »

Thanks Gilles
I'll throw in a reminder that VS2013 will not compile C#6.0, only C#5.0 or prior.
The VS2013  will compile C#5.0 code and will work for AutoCAD 2017, but we'll need VS2015 to benefit from C#6.0.
 
Regards,
 
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: NET Framework version for Dll's ??
« Reply #6 on: July 27, 2016, 07:01:28 AM »
I agree and should recommand to use Visual Studio 2015 to benefit the C# 6.0 language enhancements (compatible with all .NET Frameworks since 2.0).
Speaking English as a French Frog

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: NET Framework version for Dll's ??
« Reply #7 on: July 27, 2016, 10:21:26 AM »
Anyway, as Andrey said, a later .NET Framework version than the one installed by AutoCAD can be used (e.g. AutoCAD 2007 application against Framework 4.0 with Visual Studio 2015).
AutoCAD 2007 and AutoCAD 2009 can't use .Net Framework versions newer than .Net Framework 3.5 SP1. I checked it some years ago here: https://sites.google.com/site/bushmansnetlaboratory/moi-zametki/acad_and_dotnet

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: NET Framework version for Dll's ??
« Reply #8 on: July 27, 2016, 10:35:12 AM »
Anyway, as Andrey said, a later .NET Framework version than the one installed by AutoCAD can be used (e.g. AutoCAD 2007 application against Framework 4.0 with Visual Studio 2015).
AutoCAD 2007 and AutoCAD 2009 can't use .Net Framework versions newer than .Net Framework 3.5 SP1. I checked it some years ago here: https://sites.google.com/site/bushmansnetlaboratory/moi-zametki/acad_and_dotnet
You're right Andrey.
Appologies.
Speaking English as a French Frog

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: NET Framework version for Dll's ??
« Reply #9 on: July 27, 2016, 10:48:57 AM »
AutoCAD 2009 uses .Net Framework 2.0 (by default), but its .NET API has couple methods for the WPF windows showing. But WPF was appeared since .Net 3.0.

 * Application.ShowModalDialog()
 * Application.ShowModelessDialog()

I think that AutoCAD 2009 wasn't in time tested, therefore it was configured for using .Net Framework 2.0 (just in case).