azure-relay-bridge icon indicating copy to clipboard operation
azure-relay-bridge copied to clipboard

Fix package-all.cmd

Open congyiwu opened this issue 5 years ago • 0 comments

  1. Remove dotnet restore It's unnecessary as of .NET Core 2.0: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-restore

  2. Add --runtime win10-x64 to dotnet test to 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.

  3. Fix if not errorlevel 0 if not errorlevel 0 is 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

congyiwu avatar Jan 30 '20 08:01 congyiwu