Change powershell zip procedure to work on earlier versions.
This commit is contained in:
Родитель
88a950d436
Коммит
786f825a3d
|
@ -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 "& { Compress-Archive -Path $(MPackSourcesDir)* -DestinationPath $(MPackZipFile) -Force; } "" />
|
||||
<Move SourceFiles="$(MPackZipFile)" DestinationFiles="$(MPackOutputPath)" />
|
||||
<Exec Command="powershell.exe -NonInteractive -command "& { Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::CreateFromDirectory('$(MPackSourcesDir)', '$(MPackOutputPath)') } "" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче