Skip to main content

Example bat script to restore Nuget packages from the command line.

@echo off

rem Restore dependencies specified in the .NET project
dotnet restore %~dp0..\

pushd %~dp0..

tools\nuget.exe restore ^
    "src\Microsoft.Diagnostics.EventFlow.FilterParserGenerator\Microsoft.Diagnostics.EventFlow.FilterParserGenerator.csproj" ^
    -PackagesDirectory packages

tools\nuget.exe restore ^
    "src\Microsoft.Diagnostics.EventFlow.Signing\Microsoft.Diagnostics.EventFlow.Signing.csproj" ^
    -PackagesDirectory packages

msbuild ^
    src\Microsoft.Diagnostics.EventFlow.FilterParserGenerator\Microsoft.Diagnostics.EventFlow.FilterParserGenerator.csproj ^
    /t:CompilePegGrammars

popd