File tree Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 32
32
- crystal
33
33
- scala
34
34
- csharp
35
+ - csharp-native
35
36
- coffeescript
36
37
- kotlin
37
38
- java
Original file line number Diff line number Diff line change @@ -22,3 +22,7 @@ rss.txt
22
22
GPATH
23
23
GRTAGS
24
24
GTAGS
25
+ bin /
26
+ obj /
27
+ out /
28
+ * .csproj
Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ RUN apt-get install -y swi-prolog && apt-get clean
27
27
RUN apt-get install -y tcl && apt-get clean
28
28
RUN apt-get install -y valac && apt-get clean
29
29
30
+ RUN wget https://packages.microsoft.com/config/ubuntu/23.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
31
+ && dpkg -i packages-microsoft-prod.deb \
32
+ && rm packages-microsoft-prod.deb \
33
+ && apt-get update
34
+
35
+ RUN apt-get install -y dotnet-sdk-8.0 && apt-get clean
36
+
30
37
RUN curl -fSL https://deb.nodesource.com/setup_lts.x | bash - \
31
38
&& apt-get install -y nodejs && apt-get clean \
32
39
&& npm install --global coffeescript
Original file line number Diff line number Diff line change @@ -322,6 +322,24 @@ build-csharp: (_check "mcs mono") && (_size "count.exe") (_sizet "bytecode")
322
322
mcs -o+ ./ count.cs
323
323
echo ' mono ./count.exe {{ i}} ' > CMD
324
324
325
+ build-csharp-native : (_check " dotnet" ) && (_size " count" )
326
+ dotnet --version > VERSION
327
+ echo ' <Project Sdk="Microsoft.NET.Sdk"> \
328
+ <PropertyGroup> \
329
+ <OutputType>Exe</OutputType> \
330
+ <TargetFramework>net6.0</TargetFramework> \
331
+ <PublishSingleFile>true</PublishSingleFile> \
332
+ <EnableDefaultCompileItems>false</EnableDefaultCompileItems> \
333
+ <SelfContained>true</SelfContained> \
334
+ <RuntimeIdentifier>linux-x64</RuntimeIdentifier> \
335
+ </PropertyGroup> \
336
+ <ItemGroup> \
337
+ <Compile Include="count.cs" /> \
338
+ </ItemGroup> \
339
+ </Project>' > count.csproj
340
+ DOTNET_CLI_TELEMETRY_OPTOUT=" true" dotnet publish -c Release -o out count.csproj
341
+ echo ' ./out/count {{ i}} ' > CMD
342
+
325
343
build-ocaml : (_check " ocaml" )
326
344
ocaml --version > VERSION
327
345
echo ' ocaml ./count.ml {{ i}} ' > CMD
You can’t perform that action at this time.
0 commit comments