Skip to content

Commit

Permalink
Rename to MSBuildPath
Browse files Browse the repository at this point in the history
  • Loading branch information
daveMueller authored and devlead committed Feb 20, 2019
1 parent 69abbf2 commit b188a5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public void Should_Add_MSBuildPath_To_Arguments_If_Set()
{
// Given
var fixture = new NuGetRestorerFixture();
fixture.Settings.MSDirectoryPath = "MSBuild/15.0/Bin";
fixture.Settings.MSBuildPath = "MSBuild/15.0/Bin";

// When
var result = fixture.Run();
Expand Down
6 changes: 3 additions & 3 deletions src/Cake.Common/Tools/NuGet/Restore/NuGetRestorer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ private ProcessArgumentBuilder GetArguments(FilePath targetFilePath, NuGetRestor
builder.Append(settings.MSBuildVersion.Value.GetNuGetMSBuildVersionString());
}

// MSDirectoryPath
if (settings.MSDirectoryPath != null)
// MSBuildPath
if (settings.MSBuildPath != null)
{
builder.Append("-MSBuildPath");
builder.AppendQuoted(settings.MSDirectoryPath.MakeAbsolute(_environment).FullPath);
builder.AppendQuoted(settings.MSBuildPath.MakeAbsolute(_environment).FullPath);
}

// NonInteractive?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public sealed class NuGetRestoreSettings : ToolSettings
/// Gets or sets the path of MSBuild to use.
/// This setting takes precedence over <c>-MSBuildVersion</c> and requires NuGet V4 or later.
/// </summary>
public DirectoryPath MSDirectoryPath { get; set; }
public DirectoryPath MSBuildPath { get; set; }

/// <summary>
/// Gets or sets a value indicating whether or not NuGet suppresses prompts for user input or confirmations.
Expand Down

0 comments on commit b188a5e

Please sign in to comment.