Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is packages.config required in a deployed asp.net mvc solution

Tags:

I did a build publish to a mvc applications and See that packages.config is also deployed even though i did select "Only files required to run this application" in the properties. Can i safely remove this nuget package list file using wpp targets when deploying ?

like image 220
Deeptechtons Avatar asked Nov 08 '14 04:11

Deeptechtons


People also ask

What is package config in ASP NET MVC?

The packages. config file is used in some project types to maintain the list of packages referenced by the project. This allows NuGet to easily restore the project's dependencies when the project is to be transported to a different machine, such as a build server, without all those packages.

Does .NET core use packages config?

NET Core always uses the package reference.

What is package config?

pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line so an application can use gcc -o test test.

What is package config Targetframework?

packages. config: The targetframework attribute of a dependency specifies the variant of a package to install.


1 Answers

Yes you can remove it from the deployed application.

It is used by NuGet to keep a record of what NuGet packages are installed in a particular project.

like image 174
Matt Ward Avatar answered Mar 02 '23 02:03

Matt Ward