-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix Triple Slash Porter MSBuild loading #124
Fix Triple Slash Porter MSBuild loading #124
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Need to re-enable the workflow job in this PR before merging: #131 |
…necessary pragma ignore (bug fixed in roslyn).
…ol works when manually executed.
Update: Someone posted a workaround in the roslyn issue and it worked for this, so I am now unblocked: dotnet/roslyn#61454 cc @smasher164 |
…known issue with workaround.
edf05dd
to
a896984
Compare
I have unblocked this PR by solving the building problem, locally, both for
@smasher164 do you mind reviewing my PR? |
{ | ||
throw new Exception("You must specify a *.binlog path."); | ||
} | ||
else if (Path.GetExtension(arg).ToUpperInvariant() != ".BINLOG") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so we're okay with .bInLoG
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's no big deal.
cancellationToken.ThrowIfCancellationRequested(); | ||
|
||
Debug.Assert(projectPath != null); | ||
if (!TryGetResolvedWorkspace(projectPath, isMono, out ResolvedWorkspace? resolvedWorkspace)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline before after if
. same for other cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem. I can fix them as part of the next PR.
Some fixes to get the tool working back again, @RussKie @jeffhandley.
It works if you execute it manually. It doesn't work when executed from the unit tests due to dotnet/roslyn#61454.
Changes in this PR:
Once this is fixed, we can proceed to improve the code that loads the triple slash comments using the Roslyn APIs (we can try to apply @jeffhandley's refactoring).