Exemple #1
0
        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);
        }
Exemple #2
0
 public MSBuildCodeTaskFactoryInlineTask(ICSharp cSharp, string staticMethodFullName) // fully qualified name for a static method defined and implemented in cSharp
     : base(CreateSource(cSharp, staticMethodFullName))
 {
 }