1@rem Copyright 2016 gRPC authors. 2@rem 3@rem Licensed under the Apache License, Version 2.0 (the "License"); 4@rem you may not use this file except in compliance with the License. 5@rem You may obtain a copy of the License at 6@rem 7@rem http://www.apache.org/licenses/LICENSE-2.0 8@rem 9@rem Unless required by applicable law or agreed to in writing, software 10@rem distributed under the License is distributed on an "AS IS" BASIS, 11@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12@rem See the License for the specific language governing permissions and 13@rem limitations under the License. 14 15@rem enter this directory 16cd /d %~dp0 17 18@rem extract input artifacts 19powershell -Command "Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::ExtractToDirectory('../../../../input_artifacts/csharp_nugets_windows_dotnetcli.zip', 'TestNugetFeed');" 20 21update_version.sh auto 22 23set NUGET=nuget 24 25@rem TODO(jtattermusch): Get rid of this hack. See #8034 26@rem We can't do just "nuget restore" because restoring a .sln solution doesn't work 27@rem with nuget 3.X. On the other hand, we need nuget 2.12+ to be able to restore 28@rem some of the packages (e.g. System.Interactive.Async), but nuget 2.12 29@rem hasn't been officially released. 30@rem Please note that "Restore nuget packages" in VS2013 and VS2015 GUI works as usual. 31 32cd DistribTest || goto :error 33%NUGET% restore -PackagesDirectory ../packages || goto :error 34cd .. 35 36@call build_vs2015.bat DistribTest.sln %MSBUILD_EXTRA_ARGS% || goto :error 37 38%DISTRIBTEST_OUTPATH%\DistribTest.exe || goto :error 39 40goto :EOF 41 42:error 43echo Failed! 44exit /b %errorlevel% 45