mirror of
https://github.com/Azure/DotNetty.git
synced 2026-10-21 08:19:58 +08:00
9cf6903b2a
added a reference to .\src\SharedAssemblyInfo.cs in all release-able projects added DotNetty nuspec files for each package fixed XUnit test script
37 lines
1014 B
Batchfile
37 lines
1014 B
Batchfile
@echo off
|
|
|
|
pushd %~dp0
|
|
|
|
SETLOCAL
|
|
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
|
|
|
|
IF EXIST %CACHED_NUGET% goto copynuget
|
|
echo Downloading latest version of NuGet.exe...
|
|
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
|
|
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
|
|
|
|
:copynuget
|
|
IF EXIST .nuget\nuget.exe goto restore
|
|
md .nuget
|
|
copy %CACHED_NUGET% .nuget\nuget.exe > nul
|
|
|
|
:restore
|
|
|
|
.nuget\NuGet.exe update -self
|
|
|
|
.nuget\NuGet.exe install FAKE -OutputDirectory packages -ExcludeVersion -Version 3.28.8
|
|
|
|
.nuget\NuGet.exe install xunit.runner.console -ConfigFile .nuget\Nuget.Config -OutputDirectory packages\FAKE -ExcludeVersion -Version 2.0.0
|
|
|
|
if not exist packages\SourceLink.Fake\tools\SourceLink.fsx (
|
|
.nuget\nuget.exe install SourceLink.Fake -OutputDirectory packages -ExcludeVersion
|
|
)
|
|
rem cls
|
|
|
|
set encoding=utf-8
|
|
packages\FAKE\tools\FAKE.exe build.fsx %*
|
|
|
|
popd
|
|
|
|
|