Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Bruno Haible
Hi Simon, > >> > checking for preferred C# implementation... any > >> > checking for C# compiler... no > >> > > >> > which indicates that the patch that I added today likely fixes it. > >> > https://lists.gnu.org/archive/html/bug-gnulib/2024-10/msg00046.html > >> > >> No, it has gnulib b0edcb

Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Simon Josefsson via Gnulib discussion list
Bruno Haible writes: > Simon Josefsson wrote: >> > checking for preferred C# implementation... any >> > checking for C# compiler... no >> > >> > which indicates that the patch that I added today likely fixes it. >> > https://lists.gnu.org/archive/html/bug-gnulib/2024-10/msg00046.html >> >> N

Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Bruno Haible
Simon Josefsson wrote: > > checking for preferred C# implementation... any > > checking for C# compiler... no > > > > which indicates that the patch that I added today likely fixes it. > > https://lists.gnu.org/archive/html/bug-gnulib/2024-10/msg00046.html > > No, it has gnulib b0edcb79e with

Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Simon Josefsson via Gnulib discussion list
Bruno Haible writes: > Simon Josefsson wrote: >> However I'm not able to make it detect dotnet after I modified libidn to >> use newer gnulib: >> >> https://gitlab.com/libidn/libidn/-/jobs/8037251729 >> https://gitlab.com/libidn/libidn/-/jobs/8037251744 >> https://gitlab.com/libidn/libidn/-/jobs

Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Bruno Haible
Simon Josefsson wrote: > However I'm not able to make it detect dotnet after I modified libidn to > use newer gnulib: > > https://gitlab.com/libidn/libidn/-/jobs/8037251729 > https://gitlab.com/libidn/libidn/-/jobs/8037251744 > https://gitlab.com/libidn/libidn/-/jobs/8037251746 These logs have

Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Simon Josefsson via Gnulib discussion list
Bruno Haible writes: > This series of patches adds support for this implementation to the > csharpexec, csharpcomp modules. > > Tested with > - dotnet 6, 7, 8 on Ubuntu, > - MSVC (dotnet 6) on Windows and Cygwin. Nice! Dotnet8 confirmed on Trisquel11 and Ubuntu2204 for Libidn: https://gitl

Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Michele Locati
> +for file in `cd "$dotnet_runtime_dir" && echo > [ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.dll`; do > + case "$file" in > +*.Native.*) ;; > +*) options_csc="$options_csc -reference:"`echo "$file" | sed -e > "$sed_quote_subst"` ;; > + esac > done Yep, that should work! Th

Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Bruno Haible
On native Windows, I see errors: error CS0009: Metadata file 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.5\ucrtbase.dll' could not be opened -- PE image doesn't contain managed metadata. error CS0009: Metadata file 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.5\System

Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Bruno Haible
I had only tested with --enable-csharp=dotnet. On a machine that does not have mono and mcs installed, this option should not be necessary. 2024-10-09 Bruno Haible csharpcomp-script: Recognize dotnet even without --enable-csharp=dotnet. * m4/csharpcomp.m4 (gt_CSHARPCOMP): Try

csharpexec, csharpcomp: Add support for dotnet

2024-10-08 Thread Bruno Haible
The csharpexec, csharpcomp modules allow to compile and run C# programs. So far, they support - Mono, - the (20 years old, proprietary) SSCLI implementation from Microsoft. Nowadays, Mono is in minimal maintenance, and the common C# implementation is .NET (from Microsoft, under MIT license). T