daver32 / InterfaceGenerator

A simple source generator that creates interfaces by implementations.
MIT License
36 stars 13 forks source link

When referencing InterfaceGenerator, build size increases by 17.5 MB #12

Closed hakakou closed 1 year ago

hakakou commented 2 years ago

I've noticed that if using InterfaceGenerator, the following libraries appear in the bin folder (17.5 MB size total)

Note that if I use https://github.com/codecentric/net_automatic_interface then these libraries are not referenced, so this must be a bug.

konrad-gora commented 1 year ago

This is a log from installing this package. There is a lot of stuff. Maybe targeting it also to newer versions of .NET could help.


Successfully installed 'InterfaceGenerator 1.0.12' to MyApp
Successfully installed 'Microsoft.Bcl.AsyncInterfaces 1.1.1' to MyApp
Successfully installed 'Microsoft.CodeAnalysis 3.8.0' to MyApp
Successfully installed 'Microsoft.CodeAnalysis.Analyzers 3.0.0' to MyApp
Successfully installed 'Microsoft.CodeAnalysis.Common 3.8.0' to MyApp
Successfully installed 'Microsoft.CodeAnalysis.CSharp 3.8.0' to MyApp
Successfully installed 'Microsoft.CodeAnalysis.CSharp.Workspaces 3.8.0' to MyApp
Successfully installed 'Microsoft.CodeAnalysis.VisualBasic 3.8.0' to MyApp
Successfully installed 'Microsoft.CodeAnalysis.VisualBasic.Workspaces 3.8.0' to MyApp
Successfully installed 'Microsoft.CodeAnalysis.Workspaces.Common 3.8.0' to MyApp
Successfully installed 'Microsoft.NETCore.Platforms 2.1.2' to MyApp
Successfully installed 'Microsoft.NETCore.Targets 1.1.0' to MyApp
Successfully installed 'Microsoft.Win32.Primitives 4.3.0' to MyApp
Successfully installed 'NETStandard.Library 1.6.1' to MyApp
Successfully installed 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.native.System 4.3.0' to MyApp
Successfully installed 'runtime.native.System.IO.Compression 4.3.0' to MyApp
Successfully installed 'runtime.native.System.Net.Http 4.3.0' to MyApp
Successfully installed 'runtime.native.System.Security.Cryptography.Apple 4.3.0' to MyApp
Successfully installed 'runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple 4.3.0' to MyApp
Successfully installed 'runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'System.AppContext 4.3.0' to MyApp
Successfully installed 'System.Buffers 4.3.0' to MyApp
Successfully installed 'System.Collections 4.3.0' to MyApp
Successfully installed 'System.Collections.Concurrent 4.3.0' to MyApp
Successfully installed 'System.Collections.Immutable 5.0.0' to MyApp
Successfully installed 'System.Composition 1.0.31' to MyApp
Successfully installed 'System.Composition.AttributedModel 1.0.31' to MyApp
Successfully installed 'System.Composition.Convention 1.0.31' to MyApp
Successfully installed 'System.Composition.Hosting 1.0.31' to MyApp
Successfully installed 'System.Composition.Runtime 1.0.31' to MyApp
Successfully installed 'System.Composition.TypedParts 1.0.31' to MyApp
Successfully installed 'System.Console 4.3.0' to MyApp
Successfully installed 'System.Diagnostics.Debug 4.3.0' to MyApp
Successfully installed 'System.Diagnostics.DiagnosticSource 4.3.0' to MyApp
Successfully installed 'System.Diagnostics.Tools 4.3.0' to MyApp
Successfully installed 'System.Diagnostics.Tracing 4.3.0' to MyApp
Successfully installed 'System.Globalization 4.3.0' to MyApp
Successfully installed 'System.Globalization.Calendars 4.3.0' to MyApp
Successfully installed 'System.Globalization.Extensions 4.3.0' to MyApp
Successfully installed 'System.IO 4.3.0' to MyApp
Successfully installed 'System.IO.Compression 4.3.0' to MyApp
Successfully installed 'System.IO.Compression.ZipFile 4.3.0' to MyApp
Successfully installed 'System.IO.FileSystem 4.3.0' to MyApp
Successfully installed 'System.IO.FileSystem.Primitives 4.3.0' to MyApp
Successfully installed 'System.Linq 4.3.0' to MyApp
Successfully installed 'System.Linq.Expressions 4.3.0' to MyApp
Successfully installed 'System.Memory 4.5.4' to MyApp
Successfully installed 'System.Net.Http 4.3.0' to MyApp
Successfully installed 'System.Net.Primitives 4.3.0' to MyApp
Successfully installed 'System.Net.Sockets 4.3.0' to MyApp
Successfully installed 'System.ObjectModel 4.3.0' to MyApp
Successfully installed 'System.Reflection 4.3.0' to MyApp
Successfully installed 'System.Reflection.Emit 4.3.0' to MyApp
Successfully installed 'System.Reflection.Emit.ILGeneration 4.3.0' to MyApp
Successfully installed 'System.Reflection.Emit.Lightweight 4.3.0' to MyApp
Successfully installed 'System.Reflection.Extensions 4.3.0' to MyApp
Successfully installed 'System.Reflection.Metadata 5.0.0' to MyApp
Successfully installed 'System.Reflection.Primitives 4.3.0' to MyApp
Successfully installed 'System.Reflection.TypeExtensions 4.3.0' to MyApp
Successfully installed 'System.Resources.ResourceManager 4.3.0' to MyApp
Successfully installed 'System.Runtime 4.3.0' to MyApp
Successfully installed 'System.Runtime.CompilerServices.Unsafe 4.7.1' to MyApp
Successfully installed 'System.Runtime.Extensions 4.3.0' to MyApp
Successfully installed 'System.Runtime.Handles 4.3.0' to MyApp
Successfully installed 'System.Runtime.InteropServices 4.3.0' to MyApp
Successfully installed 'System.Runtime.InteropServices.RuntimeInformation 4.3.0' to MyApp
Successfully installed 'System.Runtime.Numerics 4.3.0' to MyApp
Successfully installed 'System.Security.Cryptography.Algorithms 4.3.0' to MyApp
Successfully installed 'System.Security.Cryptography.Cng 4.3.0' to MyApp
Successfully installed 'System.Security.Cryptography.Csp 4.3.0' to MyApp
Successfully installed 'System.Security.Cryptography.Encoding 4.3.0' to MyApp
Successfully installed 'System.Security.Cryptography.OpenSsl 4.3.0' to MyApp
Successfully installed 'System.Security.Cryptography.Primitives 4.3.0' to MyApp
Successfully installed 'System.Security.Cryptography.X509Certificates 4.3.0' to MyApp
Successfully installed 'System.Text.Encoding 4.3.0' to MyApp
Successfully installed 'System.Text.Encoding.CodePages 4.5.1' to MyApp
Successfully installed 'System.Text.Encoding.Extensions 4.3.0' to MyApp
Successfully installed 'System.Text.RegularExpressions 4.3.0' to MyApp
Successfully installed 'System.Threading 4.3.0' to MyApp
Successfully installed 'System.Threading.Tasks 4.3.0' to MyApp
Successfully installed 'System.Threading.Tasks.Extensions 4.5.4' to MyApp
Successfully installed 'System.Threading.Timer 4.3.0' to MyApp
Successfully installed 'System.Xml.ReaderWriter 4.3.0' to MyApp
Successfully installed 'System.Xml.XDocument 4.3.0' to MyApp```
daver32 commented 1 year ago

Hey, check out v1.0.13, these issues should be resolved now.

konrad-gora commented 1 year ago

I updated library and I saw uninstaling a lot of libraries (similar list to this from previous post). Building result is smaller than 2MB. Good job :)