Avoid significant amounts of packages and binaries when using Roslyn with Nuget
问题 I'm trying to make use of Roslyn in my application. I added the NuGet package for that ( Microsoft.CodeAnalysis.CSharp ). It turns out that this package depends on many others: Most of them seem unused on the .NET Framework (e.g. System.Runtime which provides types such as Int32 ). There is an incredible contrast between the size of those packages and what is actually being used. A lot of the data appear to be translations: (I'm not saying someone did a bad job here. I'm not competent enough