aspnet / LibraryManager

MIT License
457 stars 83 forks source link

Lower MSBuild output to Normal verbosity #734

Closed jimmylewis closed 7 months ago

jimmylewis commented 7 months ago

With this change, the begin and end messages are no longer shown when the verbosity is minimal. This aligns with normal output - only the project level status is shown:

C:\temp\project> dotnet build -v:m
MSBuild version 17.9.4+90725d08d for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
  project -> C:\temp\project\bin\Debug\net8.0\project.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

When verbosity is increased to Normal, we see the following output for the libman restore:

C:\temp\project> dotnet build -v:n
...
   1:7>Project "C:\temp\project\project.csproj" on node 1 (default targets).
     1>LibraryManagerRestore:

         Restore operation started
         Restoring library jquery@3.2.1...
         lib/jquery/core.js written to destination
         lib/jquery/jquery.js written to destination
         lib/jquery/jquery.min.js written to destination
         lib/jquery/jquery.min.map written to destination
         lib/jquery/jquery.slim.js written to destination
         lib/jquery/jquery.slim.min.js written to destination
         lib/jquery/jquery.slim.min.map written to destination

         1 libraries restored in 0.07 seconds

Resolves #707