title: .NET Core self-contained publish references - how to remove unused?
body: <p>I'm new to .NET Core. I've published a self-contained version of a test program which runs a simple TCP server, to <code>linux-x64</code>. However, when I publish it, the result is 70MB of the whole SDK. I can remove many of them, and their references within <code>*.deps.json</code>, 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?</p>
  
  <p>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.</p>
  
  <p>Thank you.</p>
  
  <p>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.</p>
  
  <p>Edit2: I've solved the problem, using .NET Core's <a href="https://social.technet.microsoft.com/wiki/contents/articles/51327.optimizing-footprint-of-net-core-applications.aspx" rel="nofollow noreferrer">ILLinker</a>.</p>