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