26

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 ?

Deeptechtons
  • 10,945
  • 27
  • 96
  • 178

2 Answers2

37

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.

Matt Ward
  • 47,057
  • 5
  • 93
  • 94
10

By default, the build process copies all files from source to the destination directory. To exclude the file, right click the file, select properties and for Build Action choose 'None'.

R. Shan
  • 111
  • 1
  • 8