Git Product home page Git Product logo

Comments (3)

andreakarasho avatar andreakarasho commented on July 29, 2024

You can avoid to specify all .cs files.
Just do a cd <your proj path> and then bflat build.
It will take the whole source code

from bflat.

MichalStrehovsky avatar MichalStrehovsky commented on July 29, 2024

I don't have plans to add csproj/MSBuild/NuGet support - I'm not trying to replicate dotnet.

Like @andreakarasho wrote above - bflat build will build all *.cs source files in the directory, recursively.

If you need more control than that, you're better off using dotnet with the NativeAOT NuGet package: https://github.com/dotnet/runtimelab/tree/feature/NativeAOT/samples/HelloWorld

You can configure NativeAOT through this mechanism to get pretty close to bflat: https://github.com/dotnet/runtimelab/blob/feature/NativeAOT/docs/using-nativeaot/optimizing.md

At that point the only difference is:

  • bflat can produce a bit smaller executables
  • bflat can crosstarget to Linux
  • bflat requires a lot less configuration to make it produce output because it has opinionated defaults

from bflat.

lithiumtoast avatar lithiumtoast commented on July 29, 2024

If you need more control than that, you're better off using dotnet with the NativeAOT NuGet package

I went this path.

bflat can produce a bit smaller executables

With all the options turned on to get a small as possible binary using the nAOT NuGet package, the difference in my testing was only a few hundred kilobytes (~400).

from bflat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.