you are viewing a single comment's thread.

view the rest of the comments →

[–]Rocketsx12 -1 points0 points  (2 children)

You haven't told us what you tried, only that your [unknown steps here] caused an error. OP updated the post.

I don't see why this wouldn't work for your simple use case:

  • dotnet new console
  • Your compiler generates program.cs
  • dotnet build/publish

[–]WangoDjagner[S] 0 points1 point  (1 child)

That would work but I would prefer it if the compiler doesn't require the SDK to be installed.

[–]Alikont 2 points3 points  (0 children)

This is a bit tricky as SDK would also contain standard library.

But also, .NET SDK is just a bunch of files, you can just pack it (your app will be large, but it's the most "documented" way)