Pavan Tiwari Pavan Tiwari - 22 days ago 9
ASP.NET (C#) Question

Ms deploy publish unneeded files like designer files

I am using ms deploy for publishing my web application by command line,

I have use following command

<Exec Command="msdeploy -verb:sync
-source:contentPath='D:\Impetus\Parmeshthee\Cruise_Control_Setup_Parmeshthee\SVNProjects\QATV2\QAT\'
-dest:contentPath='D:\Impetus\Parmeshthee\Cruise_Control_Setup_Parmeshthee\Projects_Publish\QATDemo'"
ContinueOnError="false"
WorkingDirectory="C:\Program Files (x86)\IIS\Microsoft Web Deploy V2"
/>


But it is just copying all the files and folder from source dir.

I don't want to send designer.cs pages to publish folder.

Answer Source