O'Reilly logo

NuGet 2 Essentials by Dejan Dakić, Damir Arh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding new files and modifying existing ones

Although that's their main feature, NuGet packages are not limited to adding assembly references and their dependencies to the project. It's time to look at other types of files that can be added to a project when a package is installed.

Transforming configuration files

Let's start with configuration files. Depending on the type of project (desktop or web application), usually either app.config or web.config is included in it. Since these files contain different configuration options for the application, it's not unusual for a package to need to add some configuration options of its own:

This can be achieved by adding an app.config.transform and/or a web.config.transform file to the content folder of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required