Author Topic: Target .NET 4.0 in a VS 2012 Project for AutoCAD 2015  (Read 2235 times)

0 Members and 1 Guest are viewing this topic.

Odoshi

  • Guest
Target .NET 4.0 in a VS 2012 Project for AutoCAD 2015
« on: September 11, 2014, 07:37:09 AM »
Hi everyone,

Just a quick sanity check, but is it possible to target .NET 4.0 for an AutoCAD 2015 project?

I noticed acad.exe.config has a supported runtime of .NET 4.0.

On my Windows 8.1 computer, I can NETLOAD .NET 4.5 dll's into CAD just fine. But a Win7 user cannot NETLOAD it. So I wanted to target .NET 4.0 but the project will not compile.

I thought the 2015 managed libraries were supported in .NET 4.0, and you only needed to target .NET 4.5 to take advantage of some new enhancements for 2015??

Thanks,
Mike

BlackBox

  • King Gator
  • Posts: 3770
Re: Target .NET 4.0 in a VS 2012 Project for AutoCAD 2015
« Reply #1 on: September 11, 2014, 07:46:01 AM »
Just a quick sanity check, but is it possible to target .NET 4.0 for an AutoCAD 2015 project?

I noticed acad.exe.config has a supported runtime of .NET 4.0.

On my Windows 8.1 computer, I can NETLOAD .NET 4.5 dll's into CAD just fine. But a Win7 user cannot NETLOAD it. So I wanted to target .NET 4.0 but the project will not compile.

I thought the 2015 managed libraries were supported in .NET 4.0, and you only needed to target .NET 4.5 to take advantage of some new enhancements for 2015??

Just to clarify... You have installed 2015 on Win7, and .NET 4.5 is not available on same?
"How we think determines what we do, and what we do determines what we get."

Odoshi

  • Guest
Re: Target .NET 4.0 in a VS 2012 Project for AutoCAD 2015
« Reply #2 on: September 11, 2014, 08:12:31 AM »
The user said .NET 4.5 got installed with AutoCAD, so should be there.

I'm just curious if anyone can take their .NET 4.5 project for 2015 and change the target platform to 4.0 and compile.



nekitip

  • Guest
Re: Target .NET 4.0 in a VS 2012 Project for AutoCAD 2015
« Reply #3 on: September 11, 2014, 08:38:02 AM »
Yes, I can confirm that I can compile the same project to 4.0 on win7 and run it on 2013 and 2015, and compile it to 4.5 and run it on 2015 on win7 (don't know how 4.5 acts on 2013)

However, I'm just curious if you will be able to disturibute this 4.5 project to other machines. I have some issues with that and I plan to deal with this later, when I find time. (I have fatal error on install. Not sure if it is related to 4.5, will deal with that later, right now im just curious).

Odoshi

  • Guest
Re: Target .NET 4.0 in a VS 2012 Project for AutoCAD 2015
« Reply #4 on: September 11, 2014, 10:36:54 AM »
Meh - On Windows 8.1 if I throw the switch to .NET 4.0, it doesn't recognize any of my USING namespaces from acmgd, acdbmgd or accoremgd.

Interop and Interop.Common are fine.





MexicanCustard

  • Swamp Rat
  • Posts: 705
Re: Target .NET 4.0 in a VS 2012 Project for AutoCAD 2015
« Reply #5 on: September 12, 2014, 08:32:08 AM »
Meh - On Windows 8.1 if I throw the switch to .NET 4.0, it doesn't recognize any of my USING namespaces from acmgd, acdbmgd or accoremgd.

Interop and Interop.Common are fine.

If you're using the 2015 SDK as your references and switch to .NET 4.0 you'll need to change all your references to the 2014 SDK.
Revit 2019, AMEP 2019 64bit Win 10