Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

do not set BaseIntermediateOutputPath in temp project of dotnet install to 2.1.4xx #9122

Merged

Conversation

wli3
Copy link

@wli3 wli3 commented Apr 23, 2018

Should use MsBuildProjectExtensionsPath instead.

  • Change the property passin by project file instead of command line. It is more reliable passing path in xml and also the timing of MsBuildProjectExtensionsPath is controlled. (Before loading SDK)
  • Change mock fake project to use “;” instead, since c:\path contains “:”.

Should use MsBuildProjectExtensionsPath instead.

Change the property passin by project file instead of command line. It is more reliable passing path in xml and also the timing of MsBuildProjectExtensionsPath is controlled. (Before loading SDK)
Change mock fake project to use “;” instead, since c:\path contains “:”.
@wli3 wli3 requested review from peterhuene and a team April 23, 2018 21:47
@wli3 wli3 changed the title do not set BaseIntermediateOutputPath in temp project of dotnet install do not set BaseIntermediateOutputPath in temp project of dotnet install **to 2.1.4xx ** Apr 23, 2018
@wli3 wli3 changed the title do not set BaseIntermediateOutputPath in temp project of dotnet install **to 2.1.4xx ** do not set BaseIntermediateOutputPath in temp project of dotnet install to 2.1.4xx Apr 23, 2018
Copy link
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

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

This looks fine.

In general it is still valid to use BaseIntermediateOutputPath to control where the NuGet output goes as long as you do so before the common props are evaluated (which is where you also have to set MSBuildProjectExtensionsPath for it to work).

@wli3
Copy link
Author

wli3 commented Apr 23, 2018

Customer scenario

After NuGet/NuGet.Client#2131 and dotnet/msbuild#3059

MSBuildProjectExtensionsPath is the more accurate property to set to only redirect nuget's output

Bugs this fixes

https://github.com/dotnet/cli/issues/9124

Workarounds, if any

N/A

Risk

low

Performance impact

no

Root cause analysis

Dependency design change.

How was the bug found?

Issued by NuGet

@MattGertz ask mode for 15.8

@livarcocc livarcocc added this to the 2.1.4xx milestone Apr 24, 2018
@wli3 wli3 merged commit 270fc44 into dotnet:release/2.1.4xx Apr 24, 2018
@wli3 wli3 deleted the dotnetsetBaseIntermediateOutputPath branch April 24, 2018 17:19
wli3 pushed a commit to wli3/cli that referenced this pull request Jun 18, 2018
…ll (dotnet#9122)

Should use MsBuildProjectExtensionsPath instead.

Change the property passin by project file instead of command line. It is more reliable passing path in xml and also the timing of MsBuildProjectExtensionsPath is controlled. (Before loading SDK)
Change mock fake project to use “;” instead, since c:\path contains “:”.
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