Support for Microsoft .Net 6.0

Using Dyalog under 'nixes

Support for Microsoft .Net 6.0

Postby mhpcto on Wed Aug 03, 2022 5:34 pm

It turns out that Microsoft has discontinued support for Netcore 3.1 starting with Ubuntu 22.04 (previous version of Ubuntu supported both 3.1 and 6.0)

It turns out that Netcore 6.0 is not supported and Dyalog is looking for Netcore 3.1.0

It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.0' (x64) was not found. Ins
- The following frameworks were found:
6.0.6 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?fr ... .22.04-x64


Are there any plans to support Netcore 6.0?
mhpcto
 
Posts: 18
Joined: Tue Sep 18, 2018 5:36 pm

Re: Support for Microsoft .Net 6.0

Postby JohnD|Dyalog on Fri Aug 05, 2022 2:56 pm

Hello,

We will be supporting .NET 6.0 "out of the box" with the next version of Dyalog, 19.0 (I cannot say yet when that will be available).

Until then it should be possible to move to .NET 6.0 by making minor changes to some of Dyalog's configuration files. We cannot formally support this route, but I don't think there will be any problems.

In the dyalog installation you will see files called:

Dyalog.Net.Bridge.deps.json
Dyalog.Net.Bridge.runtimeconfig.json

Each of these files contains version strings which will include the fragment "3.1". Change those "3.1"s to "6.0"s and you should be good to go.

The following are the changes I made:

Dyalog.Net.Bridge.deps.json: "name": ".NETCoreApp,Version=v6.0",
Dyalog.Net.Bridge.deps.json: ".NETCoreApp,Version=v6.0": {
Dyalog.Net.Bridge.runtimeconfig.json: "tfm": "netcoreapp6.0",
Dyalog.Net.Bridge.runtimeconfig.json: "version": "6.0.0"


Best Regards
John Daintree.
User avatar
JohnD|Dyalog
 
Posts: 74
Joined: Wed Oct 01, 2008 9:35 am

Re: Support for Microsoft .Net 6.0

Postby mhpcto on Mon Aug 08, 2022 7:38 pm

That does indeed work.

Thanks.
mhpcto
 
Posts: 18
Joined: Tue Sep 18, 2018 5:36 pm

Re: Support for Microsoft .Net 6.0

Postby StefanoLanzavecchia on Wed Apr 26, 2023 4:33 pm

I haven't tried much (just []NEW System.DateTime and System.Environment.Version) but it seems to work with .NET 7.0 as well. Nice :)
User avatar
StefanoLanzavecchia
 
Posts: 113
Joined: Fri Oct 03, 2008 9:37 am


Return to UNIX and Linux

Who is online

Users browsing this forum: No registered users and 1 guest