diff --git a/SharpSnmpLib/Messaging/Discoverer.cs b/SharpSnmpLib/Messaging/Discoverer.cs
index e2bbcc8d..fbeea5b8 100644
--- a/SharpSnmpLib/Messaging/Discoverer.cs
+++ b/SharpSnmpLib/Messaging/Discoverer.cs
@@ -88,7 +88,7 @@ public void Discover(VersionCode version, IPEndPoint broadcastAddress, OctetStri
using var udp = new UdpClient(addressFamily);
if (addressFamily == AddressFamily.InterNetworkV6)
{
- udp.JoinMulticastGroup((IPAddress?)broadcastAddress.Address);
+ udp.JoinMulticastGroup(broadcastAddress.Address);
}
else if (addressFamily == AddressFamily.InterNetwork)
{
diff --git a/SharpSnmpLib/SharpSnmpLib.csproj b/SharpSnmpLib/SharpSnmpLib.csproj
index 6252981b..d4929353 100644
--- a/SharpSnmpLib/SharpSnmpLib.csproj
+++ b/SharpSnmpLib/SharpSnmpLib.csproj
@@ -61,7 +61,7 @@
-
-
+
+
diff --git a/build.release.bat b/build.release.bat
index bd6c8cb7..9fc54d5f 100644
--- a/build.release.bat
+++ b/build.release.bat
@@ -1,5 +1,5 @@
rmdir /S /Q bin
-powershell -ExecutionPolicy Bypass -file release.ps1
+pwsh -ExecutionPolicy Bypass -file release.ps1
IF %ERRORLEVEL% NEQ 0 goto failed
echo succeeded.
diff --git a/dist.nuget.bat b/dist.nuget.bat
index 2e4eefc5..94c84efb 100644
--- a/dist.nuget.bat
+++ b/dist.nuget.bat
@@ -4,10 +4,10 @@ del *.nupkg
del *.snupkg
call build.release.bat
IF %ERRORLEVEL% NEQ 0 exit /b 1
-powershell -ExecutionPolicy Bypass -file sign3.ps1
+pwsh -ExecutionPolicy Bypass -file sign3.ps1
IF %ERRORLEVEL% NEQ 0 exit /b 1
copy SharpSnmpLib\bin\Release\*.nupkg .
copy SharpSnmpLib\bin\Release\*.snupkg .
-powershell -ExecutionPolicy Bypass -file sign.nuget.ps1
+pwsh -ExecutionPolicy Bypass -file sign.nuget.ps1
@IF %ERRORLEVEL% NEQ 0 exit /b 1
diff --git a/sign.assembly.ps1 b/sign.assembly.ps1
index eecb4283..86cb44e5 100644
--- a/sign.assembly.ps1
+++ b/sign.assembly.ps1
@@ -5,7 +5,7 @@ if ($env:CI -eq "true") {
$cert = Get-ChildItem -Path Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1
if ($null -eq $cert) {
Write-Host "No code signing certificate found in MY store. Exit."
- exit 1
+ exit 0
}
$signtool = Get-ChildItem -Path "${env:ProgramFiles(x86)}\Windows Kits" -Recurse -Filter "signtool.exe" | Select-Object -First 1 -ExpandProperty FullName