3 writes to SourceCode
Microsoft.Build.Tasks.Core (3)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
401
taskInfo.
SourceCode
= codeElement.Value;
443
taskInfo.
SourceCode
= File.ReadAllText(sourceAttribute.Value.Trim());
510
taskInfo.
SourceCode
= GetSourceCode(taskInfo, parameters);
10 references to SourceCode
Microsoft.Build.Tasks.Core (9)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (6)
209
return taskInfo.
SourceCode
;
237
executeMethod.Statements.Add(new CodeSnippetStatement(taskInfo.
SourceCode
));
243
codeTypeDeclaration.Members.Add(new CodeSnippetTypeMember(taskInfo.
SourceCode
));
503
if (String.IsNullOrWhiteSpace(taskInfo.
SourceCode
))
690
_log.LogIncludeGeneratedFile(fileNameInBinlog, taskInfo.
SourceCode
);
693
File.WriteAllText(sourceCodePath, taskInfo.
SourceCode
);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryTaskInfo.cs (3)
56
return String.Equals(
SourceCode
, other.
SourceCode
, StringComparison.OrdinalIgnoreCase) && References.SetEquals(other.References);
72
return
SourceCode
.GetHashCode();
Microsoft.Build.Tasks.UnitTests (1)
RoslynCodeTaskFactory_Tests.cs (1)
849
Verify(taskInfo.
SourceCode
, _verifySettings).GetAwaiter().GetResult();