r/dotnet • • 36m ago

Promotion Sharp cli

Post image

Want to learn how a C# compiler works? sharp CLI is 19k C# lines vs 722k in the MSBuild repo. The whole sharp SDK is just one Native AOT executable: no installed SDK or MSBuild needed. Compiling our own code results in these timings: dotnet build 4.2s, sharp build 2.0s.

2 Upvotes

2 comments sorted by

•

u/martasp 29m ago

Agents love fast builds.

Sharp cli can build and run a Web API in a fraction of a second:

sharp clean + build: 0.1s
dotnet clean + build: 2.2s

Try it here there is windows and linux executables: https://github.com/martasp/sharp/releases/tag/v0.3.1

•

u/AutoModerator 36m ago

Thanks for your post martasp. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.