# Rhino Common .Net Framework changed?

**URL:** <https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092>\
**Category:** Rhino Developer\
**Tags:** windows\
**Created:** [March 25, 2021, 8:02am UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092 "2021-03-25T08:02:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinIC](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinic/32/771216_2.png) [@MartinIC](https://discourse.mcneel.com/u/MartinIC)\
**Post date:** [March 25, 2021, 8:02am UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/1 "2021-03-25T08:02:56Z")

</div>

Hi, I was wondering if you raiesd the .Net Framework for RhinoCommon from 4.6 to 4.8?

After installing the Release Candidate of Rhino 7 RS5, my plug-Ins won’t build anymore (unless I change the Framework).

Thanks,  
Martin

---

<div class="post-metadata">

**Author:** ![piac](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piac/32/769366_2.png) [@piac](https://discourse.mcneel.com/u/piac)\
**Post date:** [March 25, 2021, 12:12pm UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/2 "2021-03-25T12:12:10Z")

</div>

Hi Martin!

I think so. @Alain did this work. You can both use an old RhinoCommon assembly from a previous Rhino 7 SR, or [switch to NuGet](https://www.nuget.org/packages/rhinocommon). See more info here: [Using NuGet with C#](https://developer.rhino3d.com/guides/rhinocommon/using-nuget/).

Thanks, Giulio

---

<div class="post-metadata">

**Author:** ![Alain](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/alain/32/512812_2.png) [@Alain](https://discourse.mcneel.com/u/Alain)\
**Post date:** [March 25, 2021, 12:34pm UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/3 "2021-03-25T12:34:57Z")

</div>

Hi,  
Yes, RhinoCommon now targets net48.

---

<div class="post-metadata">

**Author:** ![stevebaer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/stevebaer/32/473567_2.png) [@stevebaer](https://discourse.mcneel.com/u/stevebaer)\
**Post date:** [March 25, 2021, 12:55pm UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/4 "2021-03-25T12:55:41Z")

</div>

Your plugin has actually been runnnig under .NET 4.8 for the entire time that Rhino 7 has been available as that is the framework version that ships with Rhino andn is what Rhino loads. We finally got around to getting all of our libraries updated to properly show that they target 4.8.

You should adjust your framework target to 4.8 in your plug-in project. Once that is done, everything should compile.

---

<div class="post-metadata">

**Author:** ![MartinIC](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinic/32/771216_2.png) [@MartinIC](https://discourse.mcneel.com/u/MartinIC)\
**Post date:** [March 26, 2021, 11:12am UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/5 "2021-03-26T11:12:02Z")

</div>

Thank you for the info. We’ll switch the target Framework then.  
-Martin

---

<div class="post-metadata">

**Author:** ![Tom\_P](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tom_p/32/766520_2.png) [@Tom\_P](https://discourse.mcneel.com/u/Tom_P)\
**Post date:** [April 21, 2021, 11:11am UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/6 "2021-04-21T11:11:34Z")

</div>

Just for others to find this topic more easy:

if you have the wrong target Framework, for example 4.6 instead of 4.8 you will get the follow error in the first line in visual Studio error list:

Error CS0246  
The type or namespace name ‘Rhino’ could not be found (are you missing a using directive or an assembly reference?)

---

<div class="post-metadata">

**Author:** ![mi\_sprinzl](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mi\_sprinzl](https://discourse.mcneel.com/u/mi_sprinzl)\
**Post date:** [January 18, 2022, 7:32am UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/7 "2022-01-18T07:32:25Z")

</div>

Hi Martin,  
It would be nice if rhinocommon would support net 5 or net 6. As Microsoft is progressing fast, and even the syntax in coding changed.

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [January 18, 2022, 8:07am UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/8 "2022-01-18T08:07:44Z")

</div>

For Rhino 8 we are investigating the possibility to target .NET 6 on Windows. On MacOS Rhino 8 already targets .NET 6. See this reply [Visual Studio changing plug-in from V6 to V7 - #4 by stevebaer](https://discourse.mcneel.com/t/visual-studio-changing-plug-in-from-v6-to-v7/136384/4).

---

<div class="post-metadata">

**Author:** ![gankeyu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gankeyu/32/487811_2.png) [@gankeyu](https://discourse.mcneel.com/u/gankeyu)\
**Post date:** [January 19, 2022, 10:53am UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/10 "2022-01-19T10:53:17Z")

</div>

IIRC NET 6 projects may reference .NET Framework DLLs in VS. Have you tested this feature with dynamic assembly loading so that many plugins don’t need to be re-coded?

---

<div class="post-metadata">

**Author:** ![stevebaer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/stevebaer/32/473567_2.png) [@stevebaer](https://discourse.mcneel.com/u/stevebaer)\
**Post date:** [January 19, 2022, 12:11pm UTC](https://discourse.mcneel.com/t/rhino-common-net-framework-changed/121092/11 "2022-01-19T12:11:52Z")

</div>

We do not plan to break our SDK and want most if not all exiting plugins to be able to load in Rhino 8. There are a handful of breaking changes between the 4.8 and 6, but they are in areas where I wouldn’t expect many plugins to use them.
