Skip to content

Commit 8bfa0e2

Browse files
committed
Fixed compilation.
1 parent 74395d5 commit 8bfa0e2

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

SharpSnmpLib/Messaging/Discoverer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void Discover(VersionCode version, IPEndPoint broadcastAddress, OctetStri
8888
using var udp = new UdpClient(addressFamily);
8989
if (addressFamily == AddressFamily.InterNetworkV6)
9090
{
91-
udp.JoinMulticastGroup((IPAddress?)broadcastAddress.Address);
91+
udp.JoinMulticastGroup(broadcastAddress.Address);
9292
}
9393
else if (addressFamily == AddressFamily.InterNetwork)
9494
{

SharpSnmpLib/SharpSnmpLib.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<ItemGroup Condition="'$(TargetFramework)'=='net471'">
6262
<Reference Include="System.Configuration" />
6363
</ItemGroup>
64-
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(OS)' == 'Windows_NT' ">
65-
<Exec Command="powershell -ExecutionPolicy Bypass -file ..\sign.assembly.ps1 &quot;$(TargetPath)&quot;" />
64+
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(OS)' == 'Windows_NT' AND '$(Configuration)' == 'Release' ">
65+
<Exec Command="pwsh -ExecutionPolicy Bypass -file ..\sign.assembly.ps1 &quot;$(TargetPath)&quot;" />
6666
</Target>
6767
</Project>

build.release.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
rmdir /S /Q bin
2-
powershell -ExecutionPolicy Bypass -file release.ps1
2+
pwsh -ExecutionPolicy Bypass -file release.ps1
33
IF %ERRORLEVEL% NEQ 0 goto failed
44

55
echo succeeded.

dist.nuget.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ del *.nupkg
44
del *.snupkg
55
call build.release.bat
66
IF %ERRORLEVEL% NEQ 0 exit /b 1
7-
powershell -ExecutionPolicy Bypass -file sign3.ps1
7+
pwsh -ExecutionPolicy Bypass -file sign3.ps1
88
IF %ERRORLEVEL% NEQ 0 exit /b 1
99
copy SharpSnmpLib\bin\Release\*.nupkg .
1010
copy SharpSnmpLib\bin\Release\*.snupkg .
1111

12-
powershell -ExecutionPolicy Bypass -file sign.nuget.ps1
12+
pwsh -ExecutionPolicy Bypass -file sign.nuget.ps1
1313
@IF %ERRORLEVEL% NEQ 0 exit /b 1

sign.assembly.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if ($env:CI -eq "true") {
55
$cert = Get-ChildItem -Path Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1
66
if ($null -eq $cert) {
77
Write-Host "No code signing certificate found in MY store. Exit."
8-
exit 1
8+
exit 0
99
}
1010

1111
$signtool = Get-ChildItem -Path "${env:ProgramFiles(x86)}\Windows Kits" -Recurse -Filter "signtool.exe" | Select-Object -First 1 -ExpandProperty FullName

0 commit comments

Comments
 (0)