Remove quotes from /Logger argument because the argument escaper will do it for me
This commit is contained in:
parent
29bd7bf27a
commit
6a4d49e227
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ namespace Microsoft.DotNet.Tools.MSBuild
|
||||||
|
|
||||||
argsToForward = argsToForward.Concat(new[]
|
argsToForward = argsToForward.Concat(new[]
|
||||||
{
|
{
|
||||||
$"\"/Logger:{loggerType.FullName},{loggerType.GetTypeInfo().Assembly.Location}\""
|
$"/Logger:{loggerType.FullName},{loggerType.GetTypeInfo().Assembly.Location}"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|
|
@ -85,7 +85,7 @@ namespace Microsoft.DotNet.Cli.MSBuild.Tests
|
||||||
allArgs.Should().NotBeNull();
|
allArgs.Should().NotBeNull();
|
||||||
|
|
||||||
allArgs.Should().Contain(
|
allArgs.Should().Contain(
|
||||||
value => value.StartsWith("\"/Logger:"),
|
value => value.IndexOf("/Logger", StringComparison.OrdinalIgnoreCase) >= 0,
|
||||||
"The MSBuild logger argument should be specified when telemetry is enabled.");
|
"The MSBuild logger argument should be specified when telemetry is enabled.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue