MichalStrehovsky / zerosharp

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

why am I getting a bunch of libraries outputed? #39

Closed Shadowblitz16 closed 11 months ago

Shadowblitz16 commented 1 year ago

Why do I get all this.. image

ZeroSharp isn't really zero sharp if it's building against all these libraries. I am using the efi-no-runtime one.

MichalStrehovsky commented 1 year ago

That's not the publish directory. The output from dotnet publish is placed in a publish subdirectory. What you have here is output of dotnet build.

Shadowblitz16 commented 1 year ago

why is it outputting all these files from the build though? I thought publish was to publish things not to build things

I just wanted to build and run it in qemu or something, I don't see why all these libraries are needed.

Sardelka9515 commented 1 year ago

Build command is used to compile the code to IL instructions, not native machine code

Shadowblitz16 commented 1 year ago

Build command is used to compile the code to IL instructions, not native machine code

is there a way to get the build command to compile to native machine code using AOT?

MAG-MichaelK commented 11 months ago

You need to run the publish command. That is what invokes the NativeAOT compiler.

Shadowblitz16 commented 11 months ago

I am not looking into this anymore.