Monday, 1 October 2012

Adding extra files to a deployment package in Visual Studio 2012

Today i ran into that problem again.
In vs2010 the property "CopyAllFilesToSingleFolderForPackageDependsOn" contains targets, to add files that would go into a publishing package.

In Visual Studio 2012 it is renamed to "CopyAllFilesToSingleFolderForMsdeployDependsOn", it took some time to find the solution, so now i hope to help everyone that got the same problem.

Working Sample

This sample includes all the files from "$(SolutionDir)\files" into the package that can be deployed.


  1. Thank you for sharing.

  2. Shouldn't line 16 also be CopyAllFilesToSingleFolderForMsdeployDependsOn?

  3. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.