Update: the error is only on libraries, not standalone.
It looks like dotnet/cli#2617 broke PackagedCommandSpecFactory in tools on standalone apps.
Steps to reproduce
Create a tool that invokes tries to execute a dependency command where projectContext is a netstandard library.
new ProjectDependenciesCommandFactory(
projectContext.TargetFramework,
Constants.DefaultConfiguration,
null,
null,
projectContext.ProjectDirectory
)
.Create("dotnet-my-tool",
new []{"--dispatch", "--verbose"},
projectContext.TargetFramework,
Constants.DefaultConfiguration)
Repro project: https://github.com/natemcmaster/dotnet-sample-tool/tree/issue2645.
Expected behavior
ProjectDependenciesCommandFactory should create and execute a command on the netstandard library.
Actual behavior
On a library project
Running C:\Users\namc\dev\dotnet-sample-tool\.dotnet\shared\Microsoft.NETCore.App\1.0.0-rc2-3002476\corehost.exe --runtimeconfig C:\Users\namc\dev\dotnet-sample-tool\SampleLibrary\bin\Debug\netstandard1.5\SampleLibrary.runtimeconfig.json --depsfile C:\Users\namc\dev\dotnet-sample-tool\SampleLibrary\bin\Debug\netstandard1.5\SampleLibrary.deps.json --additionalprobingpath C:\Users\namc\.nuget\packages C:\Users\namc\.nuget\packages\dotnet-my-tool\1.0.0-tmp1461321718.66929\lib\netstandard1.5\dotnet-my-tool.dll --dispatch --verbose
Process ID: 55528
Could not resolve coreclr path
Environment data
Microsoft.DotNet.Cli.Utils/1.0.0-rc2-002476
dotnet --info output:
.NET Command Line Tools (1.0.0-rc2-002476)
Product Information:
Version: 1.0.0-rc2-002476
Commit Sha: 1a8d393b9b
Fails on windows and linux.
Trace: corehost_trace.log.txt
cc @schellap @piotrpMSFT
Update: the error is only on libraries, not standalone.
It looks like dotnet/cli#2617 broke PackagedCommandSpecFactory in tools on standalone apps.Steps to reproduce
Create a tool that invokes tries to execute a dependency command where projectContext is a netstandard library.
Repro project: https://github.com/natemcmaster/dotnet-sample-tool/tree/issue2645.
Expected behavior
ProjectDependenciesCommandFactory should create and execute a command on the netstandard library.
Actual behavior
On a library project
Environment data
Microsoft.DotNet.Cli.Utils/1.0.0-rc2-002476
dotnet --infooutput:Fails on windows and linux.
Trace: corehost_trace.log.txt
cc @schellap @piotrpMSFT