public static string CreateSource(ICSharp cSharp, string staticMethodFullName) { var csProj = File.ReadAllText(ResourceFilePath); csProj = csProj.Replace(CSharpPlaceholder, cSharp.Text); csProj = csProj.Replace(MethodFullNamePlaceholder, staticMethodFullName); return(csProj); }
public MSBuildCodeTaskFactoryInlineTask(ICSharp cSharp, string staticMethodFullName) // fully qualified name for a static method defined and implemented in cSharp : base(CreateSource(cSharp, staticMethodFullName)) { }