In my csproj file, I have the following lines:
<OutputType>Exe</OutputType>
<TargetFramework>net461</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
When building/publishing, a self-contained deployment is created with over 100 dll files. Most of them are System.*, but since I am targetting .NET 4.6.1 - these files should already be available on target machine where .NET 4.6.1 is installed.
Is it possible to deploy an exe file with just my referenced NuGet assemblies, just like the older Console App project types?
I am trying to mimick the output of older Desktop Console App project types, but with the new csproj format.
It was suggested this might be a possible duplicate of another similar question, but that question revolves around making the app run with just 1 file (which is not currently possible). Whereas my question is more about not putting unnecessary dll files in the output folder. I can remove all System.* files, and the app still runs perfectly fine, so I don't want them in my output folder.