visual studio 2012 - Disable running pre-deployment and post-deployment scripts -
i have below publish file use publish database project. wanted know if possible disable running pre-deployment , post-deployment scripts during publish.
<?xml version="1.0" encoding="utf-8"?> <project toolsversion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <propertygroup> <includecompositeobjects>true</includecompositeobjects> <targetdatabasename>mytestdb</targetdatabasename> <deployscriptfilename>myscript.sql</deployscriptfilename> <targetconnectionstring>data source=127.0.0.1;integrated security=true;pooling=false; </targetconnectionstring> <profileversionnumber>1</profileversionnumber> </propertygroup> </project>
i don't want modify script files. want know if can done through configuration specifying in publish.xml file.
you can modify pre- , post-deployment script files conditionally run based on sqlcmd variable, set sqlcmd variable accordingly in publish files.
unfortunately i'm not sure of xml schema including sqlcmd variables in publish file should able figure out playing ui. this page may helpful.
Comments
Post a Comment