Skip to content

Commit

Permalink
Restore projects on build
Browse files Browse the repository at this point in the history
This changes MSBuild to restore packages on build, to avoid immediately getting
building about missing assets files the first time you clone the repository. This
added 1.8 seconds to build time on my i7-9700k if restore is up-to-date.
  • Loading branch information
davkean committed Nov 11, 2021
1 parent 2a9d7d8 commit 2e76881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@echo.This script simply calls msbuild to build PerfView.exe
@echo.*************************************************************
@echo.
msbuild /p:Configuration=Release %*
msbuild /restore /p:Configuration=Release %*
@if '%ERRORLEVEL%' == '0' (
echo.
echo.
Expand Down

0 comments on commit 2e76881

Please sign in to comment.