asp.net - Publish web package adding tasks to copy files -
i have asp.net web package deployment using visual studios 2012 in copy off files before deployment , copy them once deployment completed. these files happen under content\upload. if deploy.cmd files deleted , need copy them off manually , copy them once deployment complete. have tried several examples of similar situations adding tasks project file files added project, such as:
adding tasks inside targets have created called
name="beforepublish"name="afterpublish"in project file.<target name="beforepublish"> <message text="beforepublish"/> <copy/> </target>adding file called
projectname.wpp.targets, adding<project> <target name="copymyfiles" beforetargets="beforepublish"> <message text="copymyfiles called"/> <copy/> </target> </project>
neither of these techniques seem called. other ideas? , how should put these tasks?
you can solve using skip rule. try calling command file this:
deploy.cmd -skip:objectname=dirpath,absolutepath=content\\uploads$ for more information on skip directive, see web deploy operation settings.
Comments
Post a Comment