Filtering MSDeploy Package Files

In my MSBuild Script, I am using MSDeploy to package and deploy my ASP.NET MVC website.

<Exec Command='  "@(MsDeploy)" -verb:sync -source:iisApp="$(Source)" -dest:package="$(Destination)" '/>

      

The problem is my * .less files are not being added to the deployment package.

Whether there are options or configuration I can set so that these files are added to the deployment package.

+3


source to share


1 answer


By default, the Web Publishing Pipeline will only build the files needed for deployment (unless you specify otherwise in the Package / Publish tab), which means the build action must be Content for these files. (You can see the Build Action property in the Properties window in Visual Studio when you select a file in Solution Explorer.) See the Deployment FAQ section on MSDN:



http://msdn.microsoft.com/en-us/library/ee942158.aspx#why_dont_all_files_get_deployed

+4


source







All Articles