Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Add the appsettings file to the nuget package [duplicate]

$
0
0

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?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>