This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 15
15
<OutDir >$(BinDir)</OutDir >
16
16
</PropertyGroup >
17
17
18
+ <PropertyGroup >
19
+ <SkipFileSigning Condition =" '$(SkipFileSigning)' == ''" and " '$(BuildArch)' == 'arm64'" >true</SkipFileSigning >
20
+ </PropertyGroup >
21
+
18
22
<UsingTask AssemblyFile =" $(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" TaskName =" ReadSigningRequired" />
19
23
20
24
<!-- apply the default signing certificates (defined in sign.targets) -->
26
30
</ItemDefinitionGroup >
27
31
28
32
<!-- gather the list of binaries to sign with the default certificates -->
29
- <ItemGroup >
33
+ <ItemGroup Condition = " '$(SkipFileSigning)' != 'true' " >
30
34
<FilesToSign Include =" $(BinDir)*.dll" Exclude =" $(BinDir)*.ni.dll" />
31
35
<FilesToSign Include =" $(BinDir)*.exe" />
32
36
</ItemGroup >
35
39
for some reason the signing task incorrectly attemps to strong-name sign
36
40
native images which causes the signing step to fail for obvious reasons.
37
41
-->
38
- <ItemGroup >
42
+ <ItemGroup Condition = " '$(SkipFileSigning)' != 'true' " >
39
43
<FilesToSign Include =" $(BinDir)*.ni.dll" >
40
44
<StrongName >None</StrongName >
41
45
</FilesToSign >
42
46
</ItemGroup >
43
47
44
48
<!-- populates item group FilesToSign with the list of files to sign -->
45
- <Target Name =" GetFilesToSignItems" BeforeTargets =" SignFiles" >
49
+ <Target Name =" GetFilesToSignItems" BeforeTargets =" SignFiles" Condition = " '$(SkipFileSigning)' != 'true' " >
46
50
<!-- read all of the marker files and populate the FilesToSign item group -->
47
51
<ItemGroup >
48
52
<SignMarkerFile Include =" $(OutDir)**\*.requires_signing" />
53
57
</Target >
54
58
55
59
<!-- now that signing is done clean up any marker files -->
56
- <Target Name =" CleanUpMarkerFiles" AfterTargets =" SignFiles" >
60
+ <Target Name =" CleanUpMarkerFiles" AfterTargets =" SignFiles" Condition = " '$(SkipFileSigning)' != 'true' " >
57
61
<!-- now that the files have been signed delete the marker files -->
58
62
<Delete Files =" @(SignMarkerFile)" />
59
63
</Target >
You can’t perform that action at this time.
0 commit comments