{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/2682","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/2682/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/2682/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/2682/events","html_url":"https://github.com/dotnet/cli/issues/2682","id":150977543,"number":2682,"title":"Failed to initialize CoreCLR when depsfile path is relative","user":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-25T20:51:18Z","updated_at":"2016-04-25T20:51:18Z","closed_at":null,"body":"## Steps to reproduce\r\n`dotnet exec --depsfile $relativePath ....`\r\n\r\nI hit this execution path in Visual Studio where build-base-path is set to a relative folder `..\\..\\artifacts` and trying to execute the command spec created with [`ProjectDependenciesCommandFactory`](https://github.com/dotnet/cli/blob/rel/1.0.0/src/Microsoft.DotNet.Cli.Utils/ProjectDependenciesCommandFactory.cs#L18-L23). \r\n\r\nSpecifying an absolute path to the `buildBasePath` constructor argument on this factory (which in turn changes the depsfile path) fixes the error.\r\n\r\n## Expected behavior\r\nFind and load execute depspath relative to current working directory.\r\n\r\n## Actual behavior\r\n```\r\nFailed to initialize CoreCLR, HRESULT: 0x80070057\r\n```\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n```\r\n.NET Command Line Tools (1.0.0-rc2-002485)\r\n\r\nProduct Information:\r\n Version:     1.0.0-rc2-002485\r\n Commit Sha:  d3c65aee87\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.10586\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n```\r\n\r\n\r\n\r\n\r\n\r\n"}}