Skip to content

Commit 4f4002d

Browse files
committed
Allow disabling macos codesigning for bundles
1 parent fc6a726 commit 4f4002d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/GenerateBundle.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class GenerateBundle : TaskBase
2828
public bool ShowDiagnosticOutput { get; set; }
2929
[Required]
3030
public bool EnableCompressionInSingleFile { get; set; }
31+
public bool EnableMacOsCodeSign { get; set; } = true;
3132

3233
[Output]
3334
public ITaskItem[] ExcludedFiles { get; set; }
@@ -64,7 +65,8 @@ protected override void ExecuteCore()
6465
targetOS,
6566
targetArch,
6667
version,
67-
ShowDiagnosticOutput);
68+
ShowDiagnosticOutput,
69+
macosCodesign: EnableMacOsCodeSign);
6870

6971
var fileSpec = new List<FileSpec>(FilesToBundle.Length);
7072

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,8 @@ Copyright (c) .NET Foundation. All rights reserved.
11381138
TargetFrameworkVersion="$(_TargetFrameworkVersionWithoutV)"
11391139
RuntimeIdentifier="$(RuntimeIdentifier)"
11401140
OutputDir="$(PublishDir)"
1141-
ShowDiagnosticOutput="$(TraceSingleFileBundler)">
1141+
ShowDiagnosticOutput="$(TraceSingleFileBundler)"
1142+
EnableMacOSCodeSign="$(_EnableMacOSCodeSign)">
11421143
<Output TaskParameter="ExcludedFiles" ItemName="_FilesExcludedFromBundle"/>
11431144
</GenerateBundle>
11441145

0 commit comments

Comments
 (0)