MichalStrehovsky / zerosharp

Demo of the potential of C# for systems programming with the .NET native ahead-of-time compilation technology.
2k stars 103 forks source link

Use ILCompiler from nuget.org #36

Closed nifanfa closed 1 year ago

nifanfa commented 1 year ago

The ILCompiler on dotnet-experiment is not available anymore...

nifanfa commented 1 year ago
-    <PackageReference Include="Microsoft.DotNet.ILCompiler" Version="7.0.0-*" />
+    <PackageReference Include="Microsoft.DotNet.ILCompiler" Version="7.0.0-preview.2.22152.2" />

we can't use the latest version of ILCompiler because the latest version of ILCompiler will not compile zerosharp to native apps

MichalStrehovsky commented 1 year ago

What's the exception/stacktrace you're seeing with latest? It can probably be worked around. (I can figure it out myself but likely won't be at a computer for a day or two, just my phone)

MichalStrehovsky commented 1 year ago

Try adding <PublishAot>true</PublishAot>

nifanfa commented 1 year ago

Try adding <PublishAot>true</PublishAot>

That still doesn't work. nothing will happen

nifanfa commented 1 year ago

What's the exception/stacktrace you're seeing with latest? It can probably be worked around. (I can figure it out myself but likely won't be at a computer for a day or two, just my phone)

Just nothing happens. It has the same effect without the package

MichalStrehovsky commented 1 year ago

https://github.com/MichalStrehovsky/zerosharp/pull/37 updated things to. NET 7