Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates MSBuild binary logs via the /bl switch on dotnet build, test, pack, publish, and restore for build diagnostics.
55% 100%+45 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 12 of 22 without it.
I need to run `dotnet restore` from a PowerShell prompt to restore packages while recording a binlog. What command should I type?
The command includes '-bl:{}' properly quoted for PowerShell
3 of 3 safety checks passed
Pass the /bl switch when running any MSBuild-based command. This is a non-negotiable requirement for all .NET builds.
You MUST add the /bl:{} flag to:
dotnet builddotnet testdotnet packdotnet publishdotnet restoremsbuild or msbuild.exe{} for Automatic Unique NamesNote: The
{}placeholder requires MSBuild 17.8+ / .NET 8 SDK or later.
The {} placeholder in the binlog filename is replaced by MSBuild with a unique identifier, guaranteeing no two builds ever overwrite each other — without needing to track or check existing files.
# Every invocation produces a distinct file automatically
dotnet build /bl:{}
dotnet test /bl:{}
dotnet build --configuration Release /bl:{}
PowerShell requires quoting the complete switch:
# Keep the literal {} placeholder in one argument
dotnet build '-bl:{}'
dotnet test '-bl:{}'
Next to this one in the catalogue, plus more from the same author.