Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefully handle project systems not giving us a file path #30889

Conversation

jasonmalinowski
Copy link
Member

We previously didn't throw if a project system refused to give us a file path for the project file itself. In my refactoring, this accidentally switched over to a Marshal.ThrowExceptionForHR, which is now causing us to crash on at least Visual Studio Tools for Office projects. Put this back for now.

Ultimately, after this "fix" we're back to the behavior described in dotnet/rosyn#30429: we won't crash, but we won't have a project file for the project.

We previously didn't throw if a project system refused to give us a file
path for the project file itself. In my refactoring, this accidentally
switched over to a Marshal.ThrowExceptionForHR, which is now causing us
to crash on at least Visual Studio Tools for Office projects. Put this
back for now.

Ultimately, after this "fix" we're back to the behavior described in
dotnet/rosyn#30429: we won't crash, but we won't have a project
file for the project.
@jasonmalinowski jasonmalinowski requested a review from a team as a code owner October 31, 2018 23:40
@jasonmalinowski jasonmalinowski self-assigned this Nov 5, 2018
@jasonmalinowski jasonmalinowski merged commit 2a7ac16 into dotnet:dev16.0.x Nov 6, 2018
@jasonmalinowski jasonmalinowski deleted the fail-gracefully-if-we-have-no-file-path branch November 6, 2018 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants