Skip XML documentation files with Web Deploy

前端 未结 1 874
不知归路
不知归路 2021-01-18 23:23

I\'m trying to publish a .NET web service using Web Deploy. Currently it\'s including XML documentation files in the package. I\'ve unchecked \"XML documentation file\" in t

相关标签:
1条回答
  • 2021-01-18 23:56

    This will globally disable generation of XML documentation:

    msbuild some.web.sln /p:DocumentationFile=""
    

    To skip *.xml files with MSDeploy.exe:

    msdeploy -verb:sync -source:contentPath=c:\sourcedir -skip:objectName=filePath,absolutePath=.*.xml -dest:contentPath=c:\newdir
    
    0 讨论(0)
提交回复
热议问题