I'm just trying build an example dotnet-core 2.0
console app which should be published as an execute file. This requires me to add an RuntimeIdentifier
in the csproj
file. After publishing my sample application for win-x64
, I get a output directory which contains around 200 dlls and my executable. I have the feeling that's too much - only to print a simple Hello World
to the console.
Is there a way to reduce the number of dlls? In this old (and now surely outdated document) named reducing package dependencies a manual approach is proposed for libraries.
Is there a way to reduce the dependencies in dotnet-core 2.0
? Or isn't this an issue after all and I shouldn't care?
Just for completeness, here is my example project definition:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<RuntimeIdentifiers>Portable;win-x64</RuntimeIdentifiers>
</PropertyGroup>
</Project>