Change powershell zip procedure to work on earlier versions.

This commit is contained in:
N. Taylor Mullen 2017-10-02 15:13:59 -07:00
Родитель 88a950d436
Коммит 786f825a3d
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -57,8 +57,7 @@
<Copy SourceFiles="$(AddinOutputPath)$(AddinName).dll" DestinationFolder="$(MPackSourcesDir)" />
<!-- We cannot use the ZipArchive task due to how it functions in CoreCLR. The archive it generates is unreadable by Visual Studio for Mac. -->
<Exec Command="powershell.exe -NonInteractive -command &quot;&amp; { Compress-Archive -Path $(MPackSourcesDir)* -DestinationPath $(MPackZipFile) -Force; } &quot;" />
<Move SourceFiles="$(MPackZipFile)" DestinationFiles="$(MPackOutputPath)" />
<Exec Command="powershell.exe -NonInteractive -command &quot;&amp; { Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::CreateFromDirectory('$(MPackSourcesDir)', '$(MPackOutputPath)') } &quot;" />
</Target>
</Project>