Adding some more tracing to tools command resolvers.
This commit is contained in:
parent
d8a10024e5
commit
99d6b1fd6d
4 changed files with 8 additions and 1 deletions
|
@ -78,6 +78,7 @@ namespace Microsoft.DotNet.Cli.Utils
|
|||
|
||||
if (project == null)
|
||||
{
|
||||
Reporter.Verbose.WriteLine($"projectdependenciescommandresolver: Didn't find a matching project {projectDirectory}.");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -131,6 +132,8 @@ namespace Microsoft.DotNet.Cli.Utils
|
|||
throw new InvalidOperationException($"Ambiguous command name: {commandName}");
|
||||
}
|
||||
|
||||
Reporter.Verbose.WriteLine($"projectdependenciescommandresolver: tool library found {toolLibraries?.Count() > 0}");
|
||||
|
||||
return toolLibraries?.FirstOrDefault();
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,10 @@ namespace Microsoft.DotNet.Cli.Utils
|
|||
Path.Combine(AppContext.BaseDirectory, "msbuild.exe") :
|
||||
msBuildExePath;
|
||||
|
||||
Reporter.Verbose.WriteLine($"projetfactory: MSBUILD_EXE_PATH = {msBuildExePath}");
|
||||
|
||||
string msBuildProjectPath = GetMSBuildProjPath(projectDirectory);
|
||||
Reporter.Verbose.WriteLine($"projetfactory: MSBuild project path = {msBuildProjectPath}");
|
||||
if(msBuildProjectPath == null)
|
||||
{
|
||||
return null;
|
||||
|
|
|
@ -108,7 +108,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
|
|||
|
||||
new DotnetCommand()
|
||||
.WithWorkingDirectory(testProjectDirectory)
|
||||
.ExecuteWithCapturedOutput("dependency-tool-invoker -f netcoreapp1.0 portable")
|
||||
.ExecuteWithCapturedOutput("-v dependency-tool-invoker -f netcoreapp1.0 portable")
|
||||
.Should()
|
||||
.Pass()
|
||||
.And
|
||||
|
|
|
@ -41,6 +41,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
|||
Environment.SetEnvironmentVariable(
|
||||
Constants.MSBUILD_EXE_PATH,
|
||||
Path.Combine(_repoDirectoriesProvider.Stage2Sdk, "msbuild.exe"));
|
||||
Environment.SetEnvironmentVariable("DOTNET_CLI_CONTEXT_VERBOSE", "true");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
Loading…
Reference in a new issue