{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/449","labels_url":"https://api.github.com/repos/aspnet/Home/issues/449/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/449/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/449/events","html_url":"https://github.com/aspnet/Home/issues/449","id":68095955,"number":449,"title":"How to override the compiler with a custom compiler shipped in a NuGet package","user":{"login":"gfraiteur","id":951549,"avatar_url":"https://avatars.githubusercontent.com/u/951549?v=3","gravatar_id":"","url":"https://api.github.com/users/gfraiteur","html_url":"https://github.com/gfraiteur","followers_url":"https://api.github.com/users/gfraiteur/followers","following_url":"https://api.github.com/users/gfraiteur/following{/other_user}","gists_url":"https://api.github.com/users/gfraiteur/gists{/gist_id}","starred_url":"https://api.github.com/users/gfraiteur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfraiteur/subscriptions","organizations_url":"https://api.github.com/users/gfraiteur/orgs","repos_url":"https://api.github.com/users/gfraiteur/repos","events_url":"https://api.github.com/users/gfraiteur/events{/privacy}","received_events_url":"https://api.github.com/users/gfraiteur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-13T13:26:23Z","updated_at":"2015-04-14T08:05:42Z","closed_at":null,"body":"I would like to integrate PostSharp with DNX. PostSharp needs to post-process the output of the Roslyn compiler.\r\n\r\nI'm trying to override the default project compiler by adding this to `project.json`:\r\n\r\n```json\r\n \"compiler\" : {\r\n        \"name\" : \"C#-PostSharp\", \r\n        \"compilerAssembly\" : \"PostSharp.Dnx\",\r\n        \"compilerType\" : \"PostSharp.Dnx.PostSharpProjectCompiler\"\r\n    }\r\n```\r\n\r\nwhere PostSharp.Dnx is a NuGet package.\r\n\r\nThe problem is that the PostSharp.Dnx assembly cannot be found. The LoadContext into which the assembly is loaded is empty, so only the `dnx\\bin` directory is being scanned.\r\n\r\nHow can I use a custom compiler shipped in a NuGet package?\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/92685388","html_url":"https://github.com/aspnet/Home/issues/449#issuecomment-92685388","issue_url":"https://api.github.com/repos/aspnet/Home/issues/449","id":92685388,"user":{"login":"gfraiteur","id":951549,"avatar_url":"https://avatars.githubusercontent.com/u/951549?v=3","gravatar_id":"","url":"https://api.github.com/users/gfraiteur","html_url":"https://github.com/gfraiteur","followers_url":"https://api.github.com/users/gfraiteur/followers","following_url":"https://api.github.com/users/gfraiteur/following{/other_user}","gists_url":"https://api.github.com/users/gfraiteur/gists{/gist_id}","starred_url":"https://api.github.com/users/gfraiteur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfraiteur/subscriptions","organizations_url":"https://api.github.com/users/gfraiteur/orgs","repos_url":"https://api.github.com/users/gfraiteur/repos","events_url":"https://api.github.com/users/gfraiteur/events{/privacy}","received_events_url":"https://api.github.com/users/gfraiteur/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T08:05:42Z","updated_at":"2015-04-14T08:05:42Z","body":"For ordering you may find inspiration in PostSharp: http://doc.postsharp.net/aspect-dependencies. It is based on Boolean networks (partial order relationships) and topological sort. We could contribute the code of the dependency resolver."}}