Skip to content

Log WorkspaceFail events#1738

Merged
vicancy merged 1 commit intodotnet:devfrom
dlech:log-workspace-failed
Jun 8, 2017
Merged

Log WorkspaceFail events#1738
vicancy merged 1 commit intodotnet:devfrom
dlech:log-workspace-failed

Conversation

@dlech
Copy link
Copy Markdown
Contributor

@dlech dlech commented Jun 7, 2017

MSBuildWorkspace.OpenSolutionAsync() and MSBuildWorkspace.OpenProjectAsync() do not give any notification that loading a solution or project failed. However, there is a WorkspaceFailed event that we can use to be notified when there is a problem. This logs the diagnotic information from this event to help the user troubleshoot.

Related:

MSBuildWorkspace.OpenSolutionAsync() and MSBuildWorkspace.OpenProjectAsync() do not give any notification that loading a solution or project failed. However, there is a WorkspaceFailed event that we can use to be notified when there is a problem. This logs the diagnotic information from this event to help the user troubleshoot.

Related:
* dotnet/roslyn#19978 (comment)
* dotnet#1686
* dotnet#1708 (comment)
@dnfclas
Copy link
Copy Markdown

dnfclas commented Jun 7, 2017

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@dlech
Copy link
Copy Markdown
Contributor Author

dlech commented Jun 7, 2017

Just realized I am making the assumption that the Logger is thread-safe. Hopefully that is the case.

@vicancy vicancy merged commit 2e26c2e into dotnet:dev Jun 8, 2017
vicancy pushed a commit that referenced this pull request Jun 15, 2017
MSBuildWorkspace.OpenSolutionAsync() and MSBuildWorkspace.OpenProjectAsync() do not give any notification that loading a solution or project failed. However, there is a WorkspaceFailed event that we can use to be notified when there is a problem. This logs the diagnotic information from this event to help the user troubleshoot.

Related:
* dotnet/roslyn#19978 (comment)
* #1686
* #1708 (comment)
@dlech dlech deleted the log-workspace-failed branch October 11, 2019 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants