{"push_id":537469293,"size":1,"distinct_size":1,"ref":"refs/heads/t4_fix","head":"f89e083e51fc17c781acf9586bc54edf67fbbdc4","before":"cfd5ce46e4fccfaa4a081151f3ac8bd377bbacd6","commits":[{"sha":"f89e083e51fc17c781acf9586bc54edf67fbbdc4","author":{"email":"8feba646ff77902da62b0ac893afba9021ca7b1b@ngs.ru","name":"xplicit"},"message":"fix an TargetInvocation error for inherited templates\n\nThis patches fixes the issue with inherited templates. Create T4\nprecompiled template SharedFragment.tt with the following text:\n\n<#@ template language=\"C#\" #>\n<#+\nprotected void SharedText(int n)\n{\n #>\n   Shared Text <#= n #>\n<#+\n}\n// Insert more methods here if required.\n #>\n\nThen create basic T4 template with the code:\n\n<#@ template language=\"C#\" inherits=\"BaseT4\" #>\n<#@ import namespace=\"ConsoleTest\" #>\n<#@ assembly name=\"/pathToProject/ConsoleTest/bin/Release/ConsoleTest.exe\" #>\n\nbegin 1\n   <# SharedText(2); #>\nend 1\n\nWhen the template is saving in Monodevelop it fails with TargetInvocation exception. The same\ntemplate works normally in Visual Studio. This patch is fixing the issue","distinct":true,"url":"https://api.github.com/repos/xplicit/monodevelop/commits/f89e083e51fc17c781acf9586bc54edf67fbbdc4"}]}