Skip to content

Commit c0d2372

Browse files
committed
Suppressed a build error.
1 parent 696f028 commit c0d2372

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

SharpSnmpLib/SharpSnmpLib.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
<Reference Include="System.Configuration" />
6767
</ItemGroup>
6868
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(OS)' == 'Windows_NT' AND '$(Configuration)' == 'Release' ">
69-
<Exec Command="pwsh -ExecutionPolicy Bypass -file ..\sign.assembly.ps1 &quot;$(TargetPath)&quot;" />
69+
<Exec Command="pwsh -ExecutionPolicy Bypass -file ..\sign.assembly.ps1 &quot;$(TargetPath)&quot;"
70+
IgnoreExitCode="true"
71+
StandardOutputImportance="High"
72+
StandardErrorImportance="High">
73+
<Output TaskParameter="ExitCode" PropertyName="SignExitCode" />
74+
</Exec>
75+
<Warning Text="Signing assembly failed with exit code $(SignExitCode)." Condition="'$(SignExitCode)' != '0'" />
7076
</Target>
7177
</Project>

0 commit comments

Comments
 (0)