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

Replay #1793

Merged
merged 3 commits into from
Mar 8, 2017
Merged

Replay #1793

merged 3 commits into from
Mar 8, 2017

Conversation

KirillOsenkov
Copy link
Member

Binary log replay functionality.

Instead of specifying a project or solution, you can specify a .binlog file to "build" and it will replay all the events in the source log into the usual loggers.

Note that BuildLogReplayEventArgs and its base class EventArgsDispatcher need to be made public for the replay functionality in MSBuild.exe to work. I've made the class sealed and added with explanations.

Instead of specifying a project or solution, you can specify a .binlog file to "build" and it will replay all the events in the source log into the usual loggers.
@KirillOsenkov
Copy link
Member Author

@dotnet-bot test Windows_NT Build for Desktop please
@dotnet-bot test Windows_NT Build for CoreCLR please

@KirillOsenkov
Copy link
Member Author

@dotnet-bot test Ubuntu16.04 Build for CoreCLR

{
string code;
string helpKeyword;
var text = ResourceUtilities.FormatResourceString(out code, out helpKeyword, "InvalidLogFileFormat", ex.Message);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there appears to be a FormatResourceString overload that does not have the out params

ReplayBinaryLog(projectFile, loggers);
}
else // regular build
{
Copy link
Contributor

@cdmihai cdmihai Mar 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The new else block is not indented.

Copy link
Contributor

@cdmihai cdmihai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like how cleanly everything fit in. Will you also write some unit tests in a future PR? :D

@KirillOsenkov
Copy link
Member Author

@KirillOsenkov KirillOsenkov merged commit 401ee9a into dotnet:xplat Mar 8, 2017
@KirillOsenkov KirillOsenkov deleted the replay branch March 8, 2017 00:09
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.

None yet

3 participants