diff --git a/Build/build.ps1 b/Build/build.ps1 index ac6e5c2..306fd6b 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -90,6 +90,9 @@ If(Test-path $destination) {Remove-item $destination} #################################################################### # Create NuGet packages. + +Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "nuget.exe" + Remove-Item .\NuGet -Force -Recurse -ErrorAction SilentlyContinue Copy-Item MQTTnet.AspNetCore.nuspec -Destination MQTTnet.AspNetCore.nuspec.old -Force @@ -112,4 +115,6 @@ New-Item -ItemType Directory -Force -Path .\NuGet Move-Item MQTTnet.AspNetCore.nuspec.old -Destination MQTTnet.AspNetCore.nuspec -Force Move-Item MQTTnet.Extensions.Rpc.nuspec.old -Destination MQTTnet.Extensions.Rpc.nuspec -Force Move-Item MQTTnet.Extensions.ManagedClient.nuspec.old -Destination MQTTnet.Extensions.ManagedClient.nuspec -Force -Move-Item MQTTnet.Extensions.WebSocket4Net.nuspec.old -Destination MQTTnet.Extensions.WebSocket4Net.nuspec -Force \ No newline at end of file +Move-Item MQTTnet.Extensions.WebSocket4Net.nuspec.old -Destination MQTTnet.Extensions.WebSocket4Net.nuspec -Force + +Remove-Item "nuget.exe" -Force -Recurse -ErrorAction SilentlyContinue \ No newline at end of file diff --git a/Build/nuget.exe b/Build/nuget.exe deleted file mode 100644 index c96819b..0000000 Binary files a/Build/nuget.exe and /dev/null differ