Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Workaround high memory usage in binary logger #257

Closed
wants to merge 2 commits into from

Conversation

natemcmaster
Copy link
Contributor


$msBuildArguments = @"
/nologo
/m
/p:RepositoryRoot="$repoFolder/"
/bl:"$msbuildLogFilePath"
"/logger:BinaryLogger,$sdkPath/Microsoft.Build.dll:$msbuildLogFilePath"

Choose a reason for hiding this comment

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

I think that should be a semicolon, not a colon

Choose a reason for hiding this comment

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

Also should the full path to the .dll be in quotes? In case there's a space?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Windows machine is currently fried so I'm relying on CI + friends to tell me where I've messed up

@KirillOsenkov
Copy link

LGTM just fix the colon and quotes. Did you try it locally?

@natemcmaster
Copy link
Contributor Author

Passes locally on macos. @smitpatel look ok on Windows?

@smitpatel
Copy link
Contributor

It will take about half an hour for travis to produce results. I am uncertain about mac but Ubuntu has the worst performance around to an extent causing compile time failure. Let's just wait for EF build to finish.

@smitpatel
Copy link
Contributor

EF passed compilation phase. Good to go!

Copy link
Contributor

@smitpatel smitpatel left a comment

Choose a reason for hiding this comment

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

Hold on merging. I could not build EF locally using this. Investigating.

@@ -122,12 +122,14 @@ $msbuildArtifactsDir = "$repoFolder/artifacts/msbuild"
$msbuildLogFilePath = "$msbuildArtifactsDir/msbuild.binlog"
$msBuildResponseFile = "$msbuildArtifactsDir/msbuild.rsp"

# Workaround https://github.com/Microsoft/msbuild/issues/2168
$sdkPath = ((dotnet --info | sls 'Base Path') -split ':' | select-object -last 1).Trim()
Copy link
Contributor

Choose a reason for hiding this comment

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

We also have DotnetInstallationFolder\sdk\DotnetVersion\ to figure out this path. 😉
Either way is fine though.

@smitpatel
Copy link
Contributor

Seems like formatting issue.

MSBUILD : error MSB1021: Cannot create an instance of the logger. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Switch: BinaryLogger,\Users\smpatel\.dotnet\x64\sdk\2.0.0-preview2-006215\/Microsoft.Build.dll;D:\EntityFramework/artifacts/msbuild/msbuild.binlog

@KirillOsenkov
Copy link

Yes C: is missing and / is weird.

@smitpatel
Copy link
Contributor

splitting this Base Path: C:\Users\smpatel\.dotnet\x64\sdk\2.0.0-preview2-006215\ wasn't a good idea. Also trailing \

@natemcmaster
Copy link
Contributor Author

Discussed with team. We're going to just turn it off for now.

Closing in favor of #256

@natemcmaster natemcmaster deleted the namc/binary-logger branch June 8, 2017 16:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants