Prepare Before C# Workshop
Prepare Before C# Workshop
MARCIN LUCZKOWSKI
VISUAL STUDIO
for the purpose of this course we recommend to install visual studio community 2022
or relevant. It is important to of course install the C# IDE, but I would also recommend
some additional ones which are presented in the below scheme
VISUAL STUDIO
if you open the visual studio without code please go to Extension on your toolbar and
open Manage Extensions
nice! you are almost there. On the right side you will find browser, type there "rhino" and
install RhinoCommon and Grasshopper templates for Rhino 7
after restarting visual studio... yes, you need to close software and reopen it... and here
again, please do it as administrator! You should see the possibility of creating new
Rhino/GH project!!!
choose the C#
version not VB
C# COURSE BY C# for engineers working in AAD
MARCIN LUCZKOWSKI
VISUAL STUDIO
lets try to make our first project!
we have our first environment to create code, but before we will build our solution,
please remember your folder address with Rhino7/Plug-ins, mine is for example like this:
C:\Program Files\Rhino 7\Plug-ins
C# COURSE BY C# for engineers working in AAD
MARCIN LUCZKOWSKI
VISUAL STUDIO
before we will build and make our first plugin please open
Project>MyFirstProject Properties
here MyFirstProject can have a different name, depending on your setup
in properties please find location of your Rhino7/Plug-ins folder, from now the .gha file
with your plugin will be build in this location. Let's test it, click Build Solution (F5) !
In the output
window, you should
find information that
your gha file has
been generated in
the correct folder!
C# COURSE BY C# for engineers working in AAD
MARCIN LUCZKOWSKI
VISUAL STUDIO
the last verification if your setup is correct is to run solution, please click the play button
in the middle top of your visual studio ribbon
after doing it your Rhino should automatically start, after opening GH you should see
also you first plugin!