xamarin-macios/dotnet/Workloads/SignList.targets

60 строки
2.4 KiB
Plaintext
Исходник Обычный вид История

[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
<Project>
<!-- Extensions for signing nested .zip files for https://github.com/xamarin/yaml-templates/blob/e0f3cdce6210e05495188def8c695372b64ada1d/sign-artifacts/steps/v2-SignFiles.proj -->
<Target Name="_UnzipNestedZips"
BeforeTargets="_CalculateItemsToSign">
<PropertyGroup>
<_NestedZipExtractionDir>$(_WorkingDir)nested\</_NestedZipExtractionDir>
</PropertyGroup>
<ItemGroup>
<_NestedBrokerZip Include="$(_WorkingDir)**\Broker.zip" />
<_NestedBuildZip Include="$(_WorkingDir)**\Build.zip" />
<_NestediOSAppZip Include="$(_WorkingDir)**\Xamarin.PreBuilt.iOS.app.zip" />
</ItemGroup>
<RemoveDir Directories="$(_NestedZipExtractionDir)" />
<Unzip
SourceFiles="@(_NestedBrokerZip)"
DestinationFolder="@(_NestedBrokerZip -> '$(_NestedZipExtractionDir)%(Filename)')"
Condition="'@(_NestedBrokerZip->Count())' != '0'"
[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
/>
<Delete Files="@(_NestedBrokerZip)" Condition="'@(_NestedBrokerZip->Count())' != '0'" />
[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
<Unzip
SourceFiles="@(_NestedBuildZip)"
DestinationFolder="@(_NestedBuildZip -> '$(_NestedZipExtractionDir)%(Filename)')"
Condition="'@(_NestedBuildZip->Count())' != '0'"
[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
/>
<Delete Files="@(_NestedBuildZip)" Condition="'@(_NestedBuildZip->Count())' != '0'" />
[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
<Unzip
SourceFiles="@(_NestediOSAppZip)"
DestinationFolder="@(_NestediOSAppZip -> '$(_NestedZipExtractionDir)%(Filename)')"
Condition="'@(_NestediOSAppZip->Count())' != '0'"
[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
/>
<Delete Files="@(_NestediOSAppZip)" Condition="'@(_NestediOSAppZip->Count())' != '0'" />
[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
</Target>
<Target Name="_ZipNestedZips"
DependsOnTargets="_UnzipNestedZips"
AfterTargets="SignFiles" >
<ZipDirectory
SourceDirectory="@(_NestedBrokerZip -> '$(_NestedZipExtractionDir)%(Filename)')"
DestinationFile="@(_NestedBrokerZip)"
Condition="'@(_NestedBrokerZip->Count())' != '0'"
[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
/>
<ZipDirectory
SourceDirectory="@(_NestedBuildZip -> '$(_NestedZipExtractionDir)%(Filename)')"
DestinationFile="@(_NestedBuildZip)"
Condition="'@(_NestedBuildZip->Count())' != '0'"
[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
/>
<ZipDirectory
SourceDirectory="@(_NestediOSAppZip -> '$(_NestedZipExtractionDir)%(Filename)')"
DestinationFile="@(_NestediOSAppZip)"
Condition="'@(_NestediOSAppZip->Count())' != '0'"
[ci] Sign .NET 6 VS Hot Restart content (#12400) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5074495&view=logs&j=f8a716f9-5318-5935-19a4-149a64409b96&t=773a1aad-99f2-5f0b-eafa-0deb88171543 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366309 Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1366310 Commit 9dbf451d added files required to support Hot Restart in .NET 6 packages, however it did not update SignList.xml to also include these new file additions. This caused .nupkg signing issues: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : Unknown assemblies: C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\BouncyCastle.Crypto.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\bz2.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\getopt.dll; C:\a\_temp\artifact-signing\SignFiles.proj(66,5): error : C:\a\_temp\artifact-signing\extracted\Microsoft.iOS.Windows.Sdk.15.0.100-ci.main.446\tools\msbuild\iOS\imobiledevice-x64\ideviceactivation.dll; ... Fix signing by listing all new content that should be skipped or signed with first/third party certs. Additionally, content in nested .zip files also needs to be signed. I've added a couple of targets to SignList.targets to unzip and rezip these files before and after individual file signing runs.
2021-08-12 17:40:10 +03:00
/>
<RemoveDir Directories="$(_NestedZipExtractionDir)" />
</Target>
</Project>