# Update Grasshopper Script to updated Node with new plugin version

**URL:** <https://discourse.mcneel.com/t/update-grasshopper-script-to-updated-node-with-new-plugin-version/93843>\
**Category:** Grasshopper\
**Created:** [December 18, 2019, 4:31pm UTC](https://discourse.mcneel.com/t/update-grasshopper-script-to-updated-node-with-new-plugin-version/93843 "2019-12-18T16:31:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaldengusiak](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/michaldengusiak/32/684611_2.png) [@michaldengusiak](https://discourse.mcneel.com/u/michaldengusiak)\
**Post date:** [December 18, 2019, 4:31pm UTC](https://discourse.mcneel.com/t/update-grasshopper-script-to-updated-node-with-new-plugin-version/93843/1 "2019-12-18T16:31:07Z")

</div>

We have our own tool written in C#. Is there any automated way or ready tool to update the existing component to the latest change in code. Please see the image. We adjusted names and existing code is not updated.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/5/b/5b2335587974a612ffd551346985c8838b2c4c29.png)

---

<div class="post-metadata">

**Author:** ![kitjmv](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/kitjmv/32/510467_2.png) [@kitjmv](https://discourse.mcneel.com/u/kitjmv)\
**Post date:** [December 18, 2019, 5:01pm UTC](https://discourse.mcneel.com/t/update-grasshopper-script-to-updated-node-with-new-plugin-version/93843/2 "2019-12-18T17:01:22Z")

</div>

Does this help you?

> [@How to modify referenced assemblies in a C# script component with another C# script component](https://discourse.mcneel.com/t/how-to-modify-referenced-assemblies-in-a-c-script-component-with-another-c-script-component/93594/2):
>
> Hello you must have ScriptComponents.gha referenced in the component. foreach(var obj in GrasshopperDocument.Objects) { var script = obj as ScriptComponents.Component\_AbstractScript; if ( script != null && script.NickName == "UniqueName" ) { switch ( version ) { case "1.0.0": path = "Path/to/version-1.0.0.dll"; break; case "1.1.0": path = "Path/to/version-1.1.0.gha"; break; } …
