« Previous Next »

Thread: Specify skipDirectives on manifest.xml, or on a separate file

Last post 04-15-2009 9:30 AM by brunomlopes. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 04-14-2009, 6:27 PM

    Specify skipDirectives on manifest.xml, or on a separate file

    I'm trying to set up a deployment pipeline with msdeploy and so far I've hit a small "problem". 

    From the build environment to the production one there are several files which should not be copied, and I've found that I can do that by skip directives. 

    My main bother is that the directives can either be configured on a file that exists on the same directory as the msdeploy executable (not so good for build servers where different projects and configurations may wish to skip diferent files), or on the command line (which for more than 2 or 3 directives becomes a bit unwieldy).

    I'd expect to be able to associate skip directives with a provider, but from what I managed to gather that is not possible. My expected syntax would be:

    <sitemanifest>
      <contentPath path="c:\source\website">
        <skipDirectives>
          <skipDirective name="ExcludeSvnDirectories">
            <skip objectName="dirPath" keyAttribute=".\svn"/>
          </skipDirective>
        </skipDirectives>
      </contentPath>
    </sitemanifest>

    Or perhaps being able to setup a .configfile local to the current working directory (and as such would be local to a given project).

    Are there any workarounds for this problem?


  • 04-14-2009, 9:36 PM In reply to

    Re: Specify skipDirectives on manifest.xml, or on a separate file

    Hi,

    Great question. Unfortunately we don't have this functionality today, but we've recently heard the request and we're investigating it.

    For now what I can recommend is that you store them in a .bat that you use to call msdeploy.exe. This would at least improve readability and make it a little easier to edit.

    It sounds like you would also want a way to skip .svn on production environments, but maybe still sync them in dev, or something similar for other files types.

    thanks,

    -faith

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 04-15-2009, 9:30 AM In reply to

    Re: Specify skipDirectives on manifest.xml, or on a separate file

    Hello,

    I'm using msdeploy from an msbuild file, so it ends up not being too bad:

        <Exec Command="msdeploy -verb:sync ^
                       -source:manifest=source.manifest.xml ^
                       -dest:manifest=deploy.manifest.xml ^
                       -skip:objectName=dirPath,keyAttribute=\.svn ^
                       -skip:objectName=filePath,keyAttribute=data-file.bin"/>

    As for the other feature, yes, it would be something like that.

    Since you can name skip declarations, having a .config file with the declarations and enabling/disabling them in manifests might work.

Page 1 of 1 (3 items)
Microsoft Communities