You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading a LockFile, the API takes a NuGet.Common.ILogger. In order to get good logging information from NuGet, we should implement a NuGet logger that can write to the MSBuild logger in our tasks that need to load a LockFile.
See the TODO in the LockFileCache class added in #8.
@emgarten What kind of errors / warnings could LockFileUtilities.GetLockFile log? Should we be forwarding those as MSBuild errors and warnings when we call this method in an MSBuild task?
Yes, they should be displayed to the user in the rare case something is logged there. NuGet logs an error if the file cannot be opened or the file is invalid.
Activity
dsplaisted commentedon May 10, 2017
@emgarten What kind of errors / warnings could
LockFileUtilities.GetLockFilelog? Should we be forwarding those as MSBuild errors and warnings when we call this method in an MSBuild task?emgarten commentedon May 10, 2017
Yes, they should be displayed to the user in the rare case something is logged there. NuGet logs an error if the file cannot be opened or the file is invalid.
livarcocc commentedon Mar 29, 2018
Fixed by #2083.
Merge pull request dotnet#18 from aspnet/RemoveFiles
Apply Round 2 code review feedback
Apply Round 3 code review feedback