Change powershell zip procedure to work on earlier versions.
This commit is contained in:
parent
88a950d436
commit
786f825a3d
|
|
@ -57,8 +57,7 @@
|
||||||
<Copy SourceFiles="$(AddinOutputPath)$(AddinName).dll" DestinationFolder="$(MPackSourcesDir)" />
|
<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. -->
|
<!-- 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; } "" />
|
<Exec Command="powershell.exe -NonInteractive -command "& { Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::CreateFromDirectory('$(MPackSourcesDir)', '$(MPackOutputPath)') } "" />
|
||||||
<Move SourceFiles="$(MPackZipFile)" DestinationFiles="$(MPackOutputPath)" />
|
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue