I'm new to .NET Core. I've published a self-contained version of a test program which runs a simple TCP server, to linux-x64
. However, when I publish it, the result is 70MB of the whole SDK. I can remove many of them, and their references within *.deps.json
, without the program falling over, so I feel there's a lot of unused references. Is there a tool, or a different method of deployment, which is leaner?
The reason for this is I would like to have an alternate deployment method for a board with only 60MB space - removing Mono and using a native .NET Core program would fit the bill nicely.
Thank you.
Edit: This question is not a duplicate as Resharper's "Optimise References" is unavailable on .NET Core projects. Also, the other VS Extensions only seem to work up to VS2011.
Edit2: I've solved the problem, using .NET Core's ILLinker.