azure-relay-bridge
azure-relay-bridge copied to clipboard
Fix package-all.cmd
-
Remove
dotnet restoreIt's unnecessary as of .NET Core 2.0: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-restore -
Add
--runtime win10-x64todotnet testto fix this error:NETSDK1031: It is not supported to build or publish a self-contained application without specifying a RuntimeIdentifier. Please either specify a RuntimeIdentifier or set SelfContained to false.
-
Fix
if not errorlevel 0if not errorlevel 0is true if ERRORLEVEL is negative, which was probably unintentional. From https://ss64.com/nt/errorlevel.html:IF ERRORLEVEL n statements should be read as IF Errorlevel >= number