Replacing all implicit msbuild parameters from using a forward slash to using a dash.
This commit is contained in:
parent
7c37c9a069
commit
10289504a8
33 changed files with 179 additions and 179 deletions
|
@ -10,26 +10,26 @@ namespace Microsoft.DotNet.Cli.MSBuild.Tests
|
|||
{
|
||||
public class GivenDotnetCleanInvocation
|
||||
{
|
||||
const string ExpectedPrefix = "exec <msbuildpath> -m -v:m /v:normal /t:Clean";
|
||||
const string ExpectedPrefix = "exec <msbuildpath> -m -v:m -v:normal -t:Clean";
|
||||
|
||||
[Fact]
|
||||
public void ItAddsProjectToMsbuildInvocation()
|
||||
{
|
||||
var msbuildPath = "<msbuildpath>";
|
||||
CleanCommand.FromArgs(new string[] { "<project>" }, msbuildPath)
|
||||
.GetProcessStartInfo().Arguments.Should().Be("exec <msbuildpath> -m -v:m /v:normal <project> /t:Clean");
|
||||
.GetProcessStartInfo().Arguments.Should().Be("exec <msbuildpath> -m -v:m -v:normal <project> -t:Clean");
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(new string[] { }, "")]
|
||||
[InlineData(new string[] { "-o", "<output>" }, "/p:OutputPath=<output>")]
|
||||
[InlineData(new string[] { "--output", "<output>" }, "/p:OutputPath=<output>")]
|
||||
[InlineData(new string[] { "-f", "<framework>" }, "/p:TargetFramework=<framework>")]
|
||||
[InlineData(new string[] { "--framework", "<framework>" }, "/p:TargetFramework=<framework>")]
|
||||
[InlineData(new string[] { "-c", "<configuration>" }, "/p:Configuration=<configuration>")]
|
||||
[InlineData(new string[] { "--configuration", "<configuration>" }, "/p:Configuration=<configuration>")]
|
||||
[InlineData(new string[] { "-v", "diag" }, "/verbosity:diag")]
|
||||
[InlineData(new string[] { "--verbosity", "diag" }, "/verbosity:diag")]
|
||||
[InlineData(new string[] { "-o", "<output>" }, "-p:OutputPath=<output>")]
|
||||
[InlineData(new string[] { "--output", "<output>" }, "-p:OutputPath=<output>")]
|
||||
[InlineData(new string[] { "-f", "<framework>" }, "-p:TargetFramework=<framework>")]
|
||||
[InlineData(new string[] { "--framework", "<framework>" }, "-p:TargetFramework=<framework>")]
|
||||
[InlineData(new string[] { "-c", "<configuration>" }, "-p:Configuration=<configuration>")]
|
||||
[InlineData(new string[] { "--configuration", "<configuration>" }, "-p:Configuration=<configuration>")]
|
||||
[InlineData(new string[] { "-v", "diag" }, "-verbosity:diag")]
|
||||
[InlineData(new string[] { "--verbosity", "diag" }, "-verbosity:diag")]
|
||||
public void MsbuildInvocationIsCorrect(string[] args, string expectedAdditionalArgs)
|
||||
{
|
||||
expectedAdditionalArgs = (string.IsNullOrEmpty(expectedAdditionalArgs) ? "" : $" {expectedAdditionalArgs}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue