How can I make dll.config part of Nuget package

Since dll.config is not supported by .NET and when creating nuget packages, dll.config is not part of the package.

Is there a way that I can have the dll.config as part of the nuget package? If anyone consumes my nuget package they should get the * .dll and * .dll.config file in the folder

I would like to offer some suggestions if possible.

+3


source to share


2 answers


Tried the above requirements and were able to package the dll config, try as below You can link the dll config files along with your dlls just using the file tag to do

<file src="path\to\dllconfigfile\*.*" target="lib\net35" />



click here -> include files in nuget package

+1


source


If you are using VS2015 try Nuget Package Explorer, it has a friendly GUI and support files. You can leave files there. enter image description here



0


source







All Articles