algorithmic modeling for Rhino
Hi,
I downloaded and installed RhinodotnetSDK in VS2010 and was wondering if it's based on .Net 4.0 framework. When I start the project, .net 4.0 is my choice, but when I take a look at project properties, .net framework 2.0 is chosen(img attached below). I know that Rhino 5.0 fully accepts .net framework 4.0 and I don't know if it's safe to manually set the target framework to 4.0 in the project properties. Does 2.0 the default for RhinodotnetSDK to ensure compatibility of plugins? Is there any thing I should bear in mind if I develop my plugin in framework 4.0?
Thanks!
-Jerome
Tags:
The "old" Rhino .Net SDK targets .Net 2.0. If you're going to work with Rhino 4 and the old SDK, then I would recommend continuing to target .Net 2.0.
Keep in mind that the *compiler* is the same for .Net 2.0, 3.0, and 3.5. The only practical difference between 2.0 through 3.5 is a series of additional dlls for things like WPF, WCF, LINQ, Entity Framework, and a few other things I can't remember right now. Therefore, you *could* target up to 3.5 and still use the old Rhino .Net SDK as long as you require that the .Net 3.x framework is installed. The compiler changed with .Net 4, which is why you'll have to develop for v5 if you need/want to use .Net 4.
Unless you've got to use one of the new features in .Net 4, then its probably a good idea to target either 2.0 or 3.5. And if you really don't need anything from 3.5, then its probably your best bet to target 2.0.
Thanks, Damien
Does there exist a Rhino.SDK wizard that automatically targets .net 4.0? Would it be safe if I just change the framework to .net 4.0 in the project properties in the VS2010? I just want to run my plugin only in Rhino5.0.
Thanks!
-Jerome
Hi Jerome,
Go ahead and just change the target framework for your plug-in to .NET 4. I would recommend targeting .NET 4 client profile since that is the minimum that Rhino 5 requires on a user's computer.
-Steve
Thanks Steve,
I just want to try TPL in .net 4.0. It's quite a headache to mess with threads not tasks. Your python demo is really nice, but I have to stick with c# and VS seems to be the only way to cope with this since c# component in Grasshopper only accepts .Net 3.5.
Thanks!
-Jerome
Oops, you would need to set your project to .NET 4 and not .NET 4 client profile. Apparently grasshopper is using some component that requires the full runtime (probably the web downloader.)
You may want to download and look at the ghpython project because that is a C# grasshopper project which targets .NET 4
https://github.com/mcneel/ghpython
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by