Author Topic: Plugin .NET Framework versions  (Read 3926 times)

Offline pstemari

  • Storm Trooper
  • ***
  • Posts: 146
    • View Profile
Plugin .NET Framework versions
« on: December 07, 2023, 05:14:09 am »
Which version of the .NET framework are people using to compile plugs?  Is it still 4.0?

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1807
    • View Profile
Re: Plugin .NET Framework versions
« Reply #1 on: December 07, 2023, 07:04:15 am »
I use 4.0 for plugins except for the” break edges” one where I had to use 4.5.
Both seem to work ok, although they are getting pretty old now, if I remember correctly
on the last computer I got I had to install them.

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5241
  • Made in England
    • View Profile
Re: Plugin .NET Framework versions
« Reply #2 on: December 07, 2023, 10:41:21 am »
Same as Dave.
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7360
    • View Profile
    • Cambam V1.0 French Doc
Re: Plugin .NET Framework versions
« Reply #3 on: December 07, 2023, 20:43:40 pm »
Same here, 4.0

++
David

Offline pstemari

  • Storm Trooper
  • ***
  • Posts: 146
    • View Profile
Re: Plugin .NET Framework versions
« Reply #4 on: December 09, 2023, 01:06:19 am »
Hmm, OK.  I may have to downgrade to VS 2019, VS 2022 doesn't allow builds with older, out-of-support versions of .NET Framework.

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1807
    • View Profile
Re: Plugin .NET Framework versions
« Reply #5 on: December 09, 2023, 02:44:17 am »
No you shouldn't have too, I'm using 2022, at the bottom of the selection menu there is an option to install
other frameworks. Installing other frameworks adds a bit of bloat though.
Dave

Offline pstemari

  • Storm Trooper
  • ***
  • Posts: 146
    • View Profile
Re: Plugin .NET Framework versions
« Reply #6 on: December 13, 2023, 07:34:20 am »
Yes, but 4.0 is out of support, and, according to the MS documentation, VS 2022 doesn't support it.  When I access that list, it goes from 3.5 to 4.6.2, with no versions in between. Trying to install an additional version takes you through a chain of pages, ending at https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/reference-assemblies, which says:

Quote
Important

Using reference assemblies makes it possible to build projects that target unsupported versions of .NET Framework from the command line. However, you still can't load these projects in newer versions of Visual Studio. To continue building these apps in Visual Studio, the only workaround is to use an older version of Visual Studio.

That said, 4.8.x uses the same CLR version as 4.0, and some initial testing indicates that a DLL built for 4.8 works with CB v1.0. I'll poke at it some more.
« Last Edit: December 13, 2023, 07:50:41 am by pstemari »

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1807
    • View Profile
Re: Plugin .NET Framework versions
« Reply #7 on: December 13, 2023, 09:35:37 am »
I'm running VS 2022 see pic, and have access to the frameworks.
My 'AI lathe auto tool changers" used 3.5 and my new computer had (from memory 4.5)
If you can see the frameworks in the drop down list and they are greyed out
then they need to be activated to work (maybe a restart or shutdown afterwards) I've included
a pic for win 8 and older windows and one to win 10, and you can see which ones are
installed with the registry, I've included a link. I just used the registry to activate them.
Hope this helps.
https://www.windowscentral.com/how-quickly-check-net-framework-version-windows-10#section-how-to-check-net-version-using-registryhttp://
Dave

Offline pstemari

  • Storm Trooper
  • ***
  • Posts: 146
    • View Profile
Re: Plugin .NET Framework versions
« Reply #8 on: December 15, 2023, 03:51:59 am »
I believe you, but, as I said, if I try to install them it takes me to the page mentioned above that says they are not available for VS 2022.  Maybe they carry over if you had VS 2019 installed, but I went from something ancient (VS 2014, maybe) directly to VS 2022.

Offline pstemari

  • Storm Trooper
  • ***
  • Posts: 146
    • View Profile
Re: Plugin .NET Framework versions
« Reply #9 on: December 21, 2023, 00:36:36 am »
Some more searching found a solution.  If you go through Microsoft's hoops, you can still download VS 2019, and if you only install the .NET Framework v4.0, it appears in VS 2022.  You can actually install just the framework and not the IDE, which is perfect for this.