I have a multitarget netsdk project with the following project format:
<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><TargetFrameworks>net5.0;netstandard2.0;net461</TargetFrameworks>...
with an app.config file.
when I build the project, it correctly builds all versions and each output folder has its correct output files:
Foo.Bar.dllFoo.Bar.dll.configFoo.Bar.pdbdependency1.dlldependency2.dll...
When I pack the nuget package with the command dotnet pack --configuration Release
, it only copies the app dll for all the targets, but I want to include the Foo.Bar.dll.config
too. I only want the dll.config, not the pdb nor any other dll dependency.
How can I do it?