Skip to content

Commit

Permalink
Add condition to disable automatic signing
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Dec 13, 2022
1 parent 960ff76 commit fdce4d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Brutal.Dev.StrongNameSigner/StrongNameSigner.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="Brutal.Dev.StrongNameSigner.AutomaticBuildTask" AssemblyFile="$(MSBuildThisFileDirectory)Brutal.Dev.StrongNameSigner.dll" />

<Target Name="StrongNameSignerTarget" AfterTargets="AfterResolveReferences">
<Target Name="StrongNameSignerTarget" AfterTargets="AfterResolveReferences" Condition="$(EnableStrongNameSigner) != 'false'">
<Brutal.Dev.StrongNameSigner.AutomaticBuildTask References="@(ReferencePath)" CopyLocalPaths="@(ReferenceCopyLocalPaths)" OutputPath="$(IntermediateOutputPath)" KeyFile="$(StrongNameKeyFile)" Password="$(StrongNamePassword)">
<Output TaskParameter="SignedAssembliesToReference" ItemName="AssembliesToReference" />
<Output TaskParameter="NewCopyLocalFiles" ItemName="NewCopyLocalFiles" />
Expand All @@ -20,5 +20,6 @@
<ResolveReferencesDependsOn>$(ResolveReferencesDependsOn);StrongNameSignerTarget</ResolveReferencesDependsOn>
<!-- Declare a variable that contains the path to the StrongNameSigner directory for pre and post build steps with the following syntax: $(StrongNameSignerDirectory) -->
<StrongNameSignerDirectory>$(MSBuildThisFileDirectory)</StrongNameSignerDirectory>
<EnableStrongNameSigner Condition="'$(EnableStrongNameSigner)' == ''">true</EnableStrongNameSigner>
</PropertyGroup>
</Project>

0 comments on commit fdce4d1

Please sign in to comment.