{"action":"created","issue":{"url":"https://api.github.com/repos/machine/machine.specifications.runner.resharper/issues/39","repository_url":"https://api.github.com/repos/machine/machine.specifications.runner.resharper","labels_url":"https://api.github.com/repos/machine/machine.specifications.runner.resharper/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/machine/machine.specifications.runner.resharper/issues/39/comments","events_url":"https://api.github.com/repos/machine/machine.specifications.runner.resharper/issues/39/events","html_url":"https://github.com/machine/machine.specifications.runner.resharper/issues/39","id":158653389,"number":39,"title":"When shadow copying is enabled, the runner does not set the Environment.CurrentDirectory correctly","user":{"login":"chrischu","id":447251,"avatar_url":"https://avatars.githubusercontent.com/u/447251?v=3","gravatar_id":"","url":"https://api.github.com/users/chrischu","html_url":"https://github.com/chrischu","followers_url":"https://api.github.com/users/chrischu/followers","following_url":"https://api.github.com/users/chrischu/following{/other_user}","gists_url":"https://api.github.com/users/chrischu/gists{/gist_id}","starred_url":"https://api.github.com/users/chrischu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrischu/subscriptions","organizations_url":"https://api.github.com/users/chrischu/orgs","repos_url":"https://api.github.com/users/chrischu/repos","events_url":"https://api.github.com/users/chrischu/events{/privacy}","received_events_url":"https://api.github.com/users/chrischu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-06T11:10:44Z","updated_at":"2016-06-08T14:41:34Z","closed_at":null,"body":"When activating shadow copying of test assemblies in ReSharper, the MSpec runner seems to incorrectly set the Environment.CurrentDirectory.\r\n\r\nInterestingly enough the AppDomain.CurrentDomain.BaseDirectory points to the original build directory (e.g. C:\\Solution\\Project\\bin\\Debug), but Environment.CurrentDirectory points to the temporary directory with the shadow-copied assemblies.\r\n\r\nThis leads to test errors when using relative paths in tests."},"comment":{"url":"https://api.github.com/repos/machine/machine.specifications.runner.resharper/issues/comments/224611153","html_url":"https://github.com/machine/machine.specifications.runner.resharper/issues/39#issuecomment-224611153","issue_url":"https://api.github.com/repos/machine/machine.specifications.runner.resharper/issues/39","id":224611153,"user":{"login":"bluerobotch","id":3074874,"avatar_url":"https://avatars.githubusercontent.com/u/3074874?v=3","gravatar_id":"","url":"https://api.github.com/users/bluerobotch","html_url":"https://github.com/bluerobotch","followers_url":"https://api.github.com/users/bluerobotch/followers","following_url":"https://api.github.com/users/bluerobotch/following{/other_user}","gists_url":"https://api.github.com/users/bluerobotch/gists{/gist_id}","starred_url":"https://api.github.com/users/bluerobotch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluerobotch/subscriptions","organizations_url":"https://api.github.com/users/bluerobotch/orgs","repos_url":"https://api.github.com/users/bluerobotch/repos","events_url":"https://api.github.com/users/bluerobotch/events{/privacy}","received_events_url":"https://api.github.com/users/bluerobotch/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T14:41:34Z","updated_at":"2016-06-08T14:41:34Z","body":"As a work around, you can create an AssemblyContext that sets the CurrentDirectory as follows: [FixCurrentDirectoryAssemblyContext.cs](https://gist.github.com/bluerobotch/aa267814f730c7756a01b758165009da)"}}
{"actor":{"display_login":"bluerobotch"}}