{"action":"created","issue":{"url":"https://api.github.com/repos/Antaris/RazorEngine/issues/283","labels_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/283/comments","events_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/283/events","html_url":"https://github.com/Antaris/RazorEngine/issues/283","id":79036634,"number":283,"title":"Template compilation fails when using RoslynCompilerServiceFactory in ASP.NET vNext project","user":{"login":"IsaacSee","id":1514198,"avatar_url":"https://avatars.githubusercontent.com/u/1514198?v=3","gravatar_id":"","url":"https://api.github.com/users/IsaacSee","html_url":"https://github.com/IsaacSee","followers_url":"https://api.github.com/users/IsaacSee/followers","following_url":"https://api.github.com/users/IsaacSee/following{/other_user}","gists_url":"https://api.github.com/users/IsaacSee/gists{/gist_id}","starred_url":"https://api.github.com/users/IsaacSee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsaacSee/subscriptions","organizations_url":"https://api.github.com/users/IsaacSee/orgs","repos_url":"https://api.github.com/users/IsaacSee/repos","events_url":"https://api.github.com/users/IsaacSee/events{/privacy}","received_events_url":"https://api.github.com/users/IsaacSee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Antaris/RazorEngine/labels/feature-request","name":"feature-request","color":"d7e102"},{"url":"https://api.github.com/repos/Antaris/RazorEngine/labels/up-for-grabs","name":"up-for-grabs","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-21T15:06:54Z","updated_at":"2015-05-28T07:44:41Z","closed_at":null,"body":"Hello.\r\n\r\nWe are using RazorEngine to render email templates in an ASPNET vNEXT project.\r\n\r\nEverything works very well when using \"dynamic\" models, with the default CompilerServiceFactory.\r\n\r\nBut we are trying to improve things using typed models (types that exists in a vNext project, built with Roslyn) by including RazorEngine.Roslyn and setting the RoslynCompilerServiceFactory.\r\n\r\nWith the following packages (last pre-release builds availables): \r\n- RazorEngine : 4.2.0-beta2\r\n- RazorEngine.Roslyn : roslyn-4.0.2-beta1\r\n\r\nOn the following DNX runtime (last pre-release build available):\r\n-  1.0.0-beta5-11781\r\n\r\nDoing this, we end up with this exception during template compilation : \r\n```MissingMethodException: Method not found: 'System .Collections.Immutable.ImmutableArray`1 Microsoft.CodeAnalysis.Emit.EmitResult.get_Diagnostics()'.```\r\n\r\nWe are aware we are living on the edge, but maybe someone else had this issue."},"comment":{"url":"https://api.github.com/repos/Antaris/RazorEngine/issues/comments/106214123","html_url":"https://github.com/Antaris/RazorEngine/issues/283#issuecomment-106214123","issue_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/283","id":106214123,"user":{"login":"matthid","id":1866463,"avatar_url":"https://avatars.githubusercontent.com/u/1866463?v=3","gravatar_id":"","url":"https://api.github.com/users/matthid","html_url":"https://github.com/matthid","followers_url":"https://api.github.com/users/matthid/followers","following_url":"https://api.github.com/users/matthid/following{/other_user}","gists_url":"https://api.github.com/users/matthid/gists{/gist_id}","starred_url":"https://api.github.com/users/matthid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthid/subscriptions","organizations_url":"https://api.github.com/users/matthid/orgs","repos_url":"https://api.github.com/users/matthid/repos","events_url":"https://api.github.com/users/matthid/events{/privacy}","received_events_url":"https://api.github.com/users/matthid/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T07:44:41Z","updated_at":"2015-05-28T07:44:41Z","body":"Ok, I did look into it. Sadly I couldn't find a way to build for \"dnxcore50\" without VS2015 and \"project.json\". So it will not integrate nicely in the current build infrastructure anyway... With this in mind, I think the best is to just add a project.json, make it work and look into the integration later... I think once this stuff is all released FAKE/msbuild will support project.json eventually.\r\n\r\nIf you know a way to make it build via regular project files that would be helpful and I could try again... Otherwise I think the best is to ignore this for now."}}