# Encounter Error (CS1009) while trying to compile a GH definition into RHP

**URL:** <https://discourse.mcneel.com/t/encounter-error-cs1009-while-trying-to-compile-a-gh-definition-into-rhp/168394>\
**Category:** Rhino\
**Tags:** windows\
**Created:** [November 3, 2023, 3:30am UTC](https://discourse.mcneel.com/t/encounter-error-cs1009-while-trying-to-compile-a-gh-definition-into-rhp/168394 "2023-11-03T03:30:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quan\_Li](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/quan_li/32/679256_2.png) [@Quan\_Li](https://discourse.mcneel.com/u/Quan_Li)\
**Post date:** [November 3, 2023, 3:30am UTC](https://discourse.mcneel.com/t/encounter-error-cs1009-while-trying-to-compile-a-gh-definition-into-rhp/168394/1 "2023-11-03T03:30:17Z")

</div>

I like to compile a simple GH definition into a plugin.  
I get an Error (CS1009).  
What is wrong here?

Thank you!

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/d/4/5d426e305e1955bb57a1b3ae083fc036267cab72.png)

I try to turn a GH definition into a plugin with Rhino Script Compiler.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/d/3/ad3f957b3de7c677b858d9b1a9b142b828fccb0c.png)

[move geometries above world center.gh](https://discourse.mcneel.com/uploads/short-url/sNl3OfcpnVFlXM3NfdYgChJApSq.gh) (10.3 KB)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/0/0/2005e9c1e335bb3e4173f48c9402e4182b807aa1.png)

---

<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:** [November 3, 2023, 5:21am UTC](https://discourse.mcneel.com/t/encounter-error-cs1009-while-trying-to-compile-a-gh-definition-into-rhp/168394/2 "2023-11-03T05:21:19Z")

</div>

I don’t know the tool used here, but to make it easier for others to understand the error code: [Compiler Error CS1009 - C# | Microsoft Learn](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1009)

---

<div class="post-metadata">

**Author:** ![Quan\_Li](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/quan_li/32/679256_2.png) [@Quan\_Li](https://discourse.mcneel.com/u/Quan_Li)\
**Post date:** [November 3, 2023, 5:25am UTC](https://discourse.mcneel.com/t/encounter-error-cs1009-while-trying-to-compile-a-gh-definition-into-rhp/168394/3 "2023-11-03T05:25:32Z")

</div>

Thank you!  
I am trying to turn a GH definition into a plugin with Rhino Script Compiler.

---

<div class="post-metadata">

**Author:** ![wim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wim/32/747482_2.png) [@wim](https://discourse.mcneel.com/u/wim)\
**Post date:** [November 3, 2023, 9:07am UTC](https://discourse.mcneel.com/t/encounter-error-cs1009-while-trying-to-compile-a-gh-definition-into-rhp/168394/4 "2023-11-03T09:07:31Z")

</div>

> [@Quan\_Li](#):
>
> I am trying to turn a GH definition into a plugin with Rhino Script Compiler.

That’s working fine with your .gh file here.  
That said, the Rhino 7 script compiler is now legacy technology. Have you tried using the `ScriptEditor` in Rhino 8?  
-wim
