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

Cleanup workarounds #233

Merged
merged 3 commits into from
May 1, 2017
Merged

Cleanup workarounds #233

merged 3 commits into from
May 1, 2017

Conversation

natemcmaster
Copy link
Contributor

@natemcmaster natemcmaster commented Apr 27, 2017

@@ -142,7 +122,5 @@ if (!(Test-Path $msbuildArtifactsDir))

$msBuildArguments | Out-File -Encoding ASCII -FilePath $msBuildResponseFile

# workaround https://github.com/dotnet/core-setup/issues/1664
Copy link
Contributor

Choose a reason for hiding this comment

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

Did this get fixed? The work item this pointed to isn't closed as yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested. Its been fixed. dotnet/core-setup#2055 It just looks like the bug hasn't been closed.

Copy link
Member

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

Generally, not sure why this cleanup matters much.

$preflightClpOption=''
$msbuildClpOption='/clp:Summary'
}

Copy link
Member

Choose a reason for hiding this comment

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

This wasn't just a workaround and should not be removed. None of the CI systems display MSBuild's colours. So, this update will only increase log sizes.

Same for removing this feature on other platforms.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We disabled color and did the 'tee' on Linux to workaround dotnet/msbuild#1792 which has been fixed since mid March.

MSBuild console logger doesn't emit much color in minimal mode, so I don't think log size is a major concern: on the test run for this PR, it added a total of 76 bytes: https://travis-ci.org/aspnet/KoreBuild/jobs/226232644.

Copy link
Member

Choose a reason for hiding this comment

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

I made this change and dotnet/msbuild#1792 was part of the reason behind it. There's no point to colour in the CI builds.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's no point to colour in the CI builds.

I disagree. Color is useful, esp. when there are warnings and errors. AppVeyor is the only one that strips color. TeamCity shows color when you view logs in "console view".
image

Copy link
Member

Choose a reason for hiding this comment

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

Right, we disagree here. Never seen anyone use the console view in TC.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. I'll back our the this particular change and make a separate discussion issue for this.

"$makeFileProj"
ENDMSBUILDARGS
echo -e "$msbuild_args" >> $msbuildResponseFile

__exec dotnet msbuild /nologo /t:Restore /p:PreflightRestore=true /p:NetFxVersion=$netfxversion "$makeFileProj"
Copy link
Member

Choose a reason for hiding this comment

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

Why doesn't this command set $(RepositoryRoot) anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was never needed for PreflightRestore.

@@ -14,7 +14,8 @@ PublishProfiles/
*.cache
*.docstates
_ReSharper.*
nuget.exe
*.exe
*.dll
Copy link
Member

Choose a reason for hiding this comment

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

What DLLs and EXEs now need to be ignored?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing new. Just general cleanup.

@natemcmaster
Copy link
Contributor Author

Ping @dougbu

Nate McMaster added 2 commits May 1, 2017 10:50
- No longer download NuGet.exe. Fixes #214
- Don't generate global.json
- Don't suppress color output on CI. Fixes #193
- Add comments to template file. Fixes #222
@natemcmaster natemcmaster merged commit d36635a into dev May 1, 2017
@natemcmaster natemcmaster deleted the namc/cleanup branch May 1, 2017 18:01
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.

4 participants