# DebugMyScript Demo not working correctly in NET6

**URL:** <https://forum.alternetsoft.com/t/debugmyscript-demo-not-working-correctly-in-net6/298>\
**Category:** AlterNET Studio Support\
**Tags:** editor, windows-forms\
**Created:** [April 14, 2022, 10:27am UTC](https://forum.alternetsoft.com/t/debugmyscript-demo-not-working-correctly-in-net6/298 "2022-04-14T10:27:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dex](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/d/606060/32.png) [@Dex](https://forum.alternetsoft.com/u/Dex)\
**Post date:** [April 14, 2022, 10:27am UTC](https://forum.alternetsoft.com/t/debugmyscript-demo-not-working-correctly-in-net6/298/1 "2022-04-14T10:27:03Z")

</div>

Hi,

The DebugMyScript project from the Demo solution runs the external debugger without any issues when running the project as net452. When you change it to net6.0-windows, the remote AlternetStudio debugger starts throwing errors when you try to edit the code. Any idea how to fix this?

Thanks

---

<div class="post-metadata">

**Author:** ![Dex](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/d/606060/32.png) [@Dex](https://forum.alternetsoft.com/u/Dex)\
**Post date:** [April 14, 2022, 11:42am UTC](https://forum.alternetsoft.com/t/debugmyscript-demo-not-working-correctly-in-net6/298/2 "2022-04-14T11:42:36Z")

</div>

I think i’ve found the issue. The AlternetStudio demo project does not take the NETCore dependencies in account like some other demo projects do. MainForm.FormDesigner.GetDesignerReferencedAssemblies does only take NETCore in account when the file to be opened belongs to a project. With just a simple script like the DebugMyScript example, it’s missing the NETCore assemblies.

---

<div class="post-metadata">

**Author:** ![yevgeni.zolotko](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/yevgeni.zolotko/32/25_2.png) [@yevgeni.zolotko](https://forum.alternetsoft.com/u/yevgeni.zolotko)\
**Post date:** [April 20, 2022, 8:17am UTC](https://forum.alternetsoft.com/t/debugmyscript-demo-not-working-correctly-in-net6/298/3 "2022-04-20T08:17:35Z")

</div>

Hi,  
Sorry for the late reply.

Could you please describe the exact steps required to reproduce the problem, the expected behavior and the desired behavior?
