# Support for .NET6

**URL:** <https://forum.alternetsoft.com/t/support-for-net6/274>\
**Category:** AlterNET Studio Support\
**Tags:** editor, windows-forms\
**Created:** [December 14, 2021, 5:26am UTC](https://forum.alternetsoft.com/t/support-for-net6/274 "2021-12-14T05:26:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewS](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/a/606060/32.png) [@AndrewS](https://forum.alternetsoft.com/u/AndrewS)\
**Post date:** [December 14, 2021, 5:26am UTC](https://forum.alternetsoft.com/t/support-for-net6/274/1 "2021-12-14T05:26:12Z")

</div>

I have recently attempted to convert all of our software from .NET Framework v4.8 to 6.0. Whilst everything builds and runs, attempting to show a form containing the syntax editor results in the following exception:

_BinaryFormatter serialization is obsolete and should not be used. See [BinaryFormatter security guide | Microsoft Docs](https://aka.ms/binaryformatter) for more information_

Here is the stack trace (apologies for the image, hard to get text out of this environment):

 ![image](https://forum.alternetsoft.com/uploads/default/original/1X/c5e33dd72beee9257e23a8460774062d15612daf.png)

Any chance this is slated to be fixed in the next release which is due out early next year?

---

<div class="post-metadata">

**Author:** ![ks1](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/k/606060/32.png) [@ks1](https://forum.alternetsoft.com/u/ks1)\
**Post date:** [December 14, 2021, 9:36am UTC](https://forum.alternetsoft.com/t/support-for-net6/274/2 "2021-12-14T09:36:50Z")

</div>

Hi,

this is very interesting for me, too.  
We also want to upgrade to .net 6.  
I get following error message when I start our application:  
_Method ‘get\_ContextMenu’ in type ‘Alternet.Editor.SyntaxEdit’ from assembly ‘Alternet.Editor.v6, Version=6.2.0.0, Culture=neutral, PublicKeyToken=8032721e70924a63’ does not have an implementation._

Any advice would be helpful.

Karol

---

<div class="post-metadata">

**Author:** ![ks1](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/k/606060/32.png) [@ks1](https://forum.alternetsoft.com/u/ks1)\
**Post date:** [December 15, 2021, 9:50am UTC](https://forum.alternetsoft.com/t/support-for-net6/274/3 "2021-12-15T09:50:07Z")

</div>

After upgrading to Alternet Studio 7.2 I have exactly the same problem.

Best Regards  
Karol

---

<div class="post-metadata">

**Author:** ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Post date:** [December 16, 2021, 12:11am UTC](https://forum.alternetsoft.com/t/support-for-net6/274/4 "2021-12-16T00:11:36Z")

</div>

Hi Andrew,

I wonder if you used assemblies from C:\Program Files (x86)\AlterNET Software\AlterNET Studio v.7\Bin\ folder in .NET 6 application? These libraries are built for 4.6.1 .NET Framework, so they might cause issue with licensing if used in .NET Core/.NET 6 applications (as licx mechanism seems to be obsolete in .NET Core)

I would suggest to use our multi-target packages instead - please refer to the complete list of these package here:

[https://www.nuget.org/profiles/Alternet](https://www.nuget.org/profiles/Alternet)

As an example, Alternet.Studio.Editor.WindowsForms package contains Code Editor WinForms libraries build for .net 5, which .net 6 application will use instead of ones built for 4.6.1 Framework.  
Let me know if this works for you.

These packages will support .NET 6 target in the coming update (version 8).

Karol, we’ve seen issue with _get\_ContextMenu_ only in situation when assemblies from different version were mixed (say if AlterNET.Editor.v7.dll was of version 7.2, but Alternet.Common.v7.dll was of version 7.0). If you could upload your cut-down version of your project where this issue can be reproduced (with Bin folder), we will be able to have a closer look at it.

Kind regards,  
Dmitry

---

<div class="post-metadata">

**Author:** ![AndrewS](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/a/606060/32.png) [@AndrewS](https://forum.alternetsoft.com/u/AndrewS)\
**Post date:** [December 20, 2021, 6:19am UTC](https://forum.alternetsoft.com/t/support-for-net6/274/5 "2021-12-20T06:19:45Z")

</div>

Dmitry,

I have added every package that is available in nuget, and I simply cannot find the TypeScriptTokenizer class. This is in Alternet.Syntax.Parsers.TypeScript.v7.dll in the 4.6.1 framework side of things. Can you please tell me where to find it in the .NET 5 version? I thought for sure it would be under Alternet.Syntax.Parsers.TypeScript but there is no such namespace - I can only choose from ‘Generic’ or ‘Advanced’.

Thanks

Andrew

---

<div class="post-metadata">

**Author:** ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Post date:** [December 20, 2021, 6:49am UTC](https://forum.alternetsoft.com/t/support-for-net6/274/6 "2021-12-20T06:49:46Z")

</div>

Hi Andrew,

.NET Core target is not currently supported by TypeScript. We did some research and hit few roadblocks when trying to support .NET core. We will look at at again to see if it’s feasible to push this feature to the coming release.

Regards,  
Dmitry

---

<div class="post-metadata">

**Author:** ![ks1](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/k/606060/32.png) [@ks1](https://forum.alternetsoft.com/u/ks1)\
**Post date:** [December 20, 2021, 4:04pm UTC](https://forum.alternetsoft.com/t/support-for-net6/274/7 "2021-12-20T16:04:31Z")

</div>

Thank you Dmitry,

using the nuget packages fixed my problem.  
Regarding my first problem: I’m not sure if I will be able to provide a simple reproduce…

Best Regards  
Karol

---

<div class="post-metadata">

**Author:** ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Post date:** [December 21, 2021, 3:07am UTC](https://forum.alternetsoft.com/t/support-for-net6/274/8 "2021-12-21T03:07:59Z")

</div>

Hi Karol,

Just to clarify, when you use NuGet packages, you no longer get issue with _get\_ContextMenu_?  
As I mentioned before it’s likely that it would happen if you mix assemblies from different minor versions.

Regards,  
Dmitry

---

<div class="post-metadata">

**Author:** ![ks1](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/k/606060/32.png) [@ks1](https://forum.alternetsoft.com/u/ks1)\
**Post date:** [January 3, 2022, 12:05pm UTC](https://forum.alternetsoft.com/t/support-for-net6/274/9 "2022-01-03T12:05:40Z")

</div>

Hi Dmitry,

Happy New Year!

I confirm that I do **not** have the above issue anymore when using NuGet packages.

Best Regards  
Karol

---

<div class="post-metadata">

**Author:** ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Post date:** [January 4, 2022, 10:27am UTC](https://forum.alternetsoft.com/t/support-for-net6/274/10 "2022-01-04T10:27:27Z")

</div>

Hi Karol,

Thank you for confirming.

Happy New Year to you too!

Regards,  
Dmitry
