How to use MSBuild extension's Zip task?

前端 未结 2 1812
庸人自扰
庸人自扰 2021-02-04 00:13

I decided to use MSBuild Extension\'s Zip task to compress some of my source code at every build.

However, this not works:



        
2条回答
  •  梦如初夏
    2021-02-04 00:55

    Here's an alternative to MSBuild Community Tasks. If you're using .net 4.5.1, you can embed the System.IO.Compression functions in a UsingTask. This example uses ZipFile.CreateFromDirectory.

    
      
    
    
    
      
        
        
      
      
        
        
        
      
    
    

提交回复
热议问题