3 writes to SourceCode
Microsoft.Build.Tasks.Core (3)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
426taskInfo.SourceCode = codeElement.Value; 476taskInfo.SourceCode = FileSystems.Default.ReadFileAllText(resolvedPath); 543taskInfo.SourceCode = GetSourceCode(taskInfo, parameters);
13 references to SourceCode
Microsoft.Build.Tasks.Core (9)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (6)
233return taskInfo.SourceCode; 261executeMethod.Statements.Add(new CodeSnippetStatement(taskInfo.SourceCode)); 267codeTypeDeclaration.Members.Add(new CodeSnippetTypeMember(taskInfo.SourceCode)); 536if (String.IsNullOrWhiteSpace(taskInfo.SourceCode)) 738_log.LogIncludeGeneratedFile(fileNameInBinlog, taskInfo.SourceCode); 741File.WriteAllText(sourceCodePath, taskInfo.SourceCode);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryTaskInfo.cs (3)
57&& String.Equals(SourceCode, other.SourceCode, StringComparison.OrdinalIgnoreCase) 74return HashCode.Combine(Name?.GetHashCode() ?? 0, SourceCode?.GetHashCode() ?? 0);
Microsoft.Build.Tasks.UnitTests (4)
RoslynCodeTaskFactory_Tests.cs (4)
1045Verify(taskInfo.SourceCode, _verifySettings).GetAwaiter().GetResult(); 1360taskInfo.SourceCode.ShouldContain("TestTask", customMessage: "Should have loaded code from file"); 1407taskInfo.SourceCode.ShouldContain("AbsolutePathTask"); 1455taskInfo.SourceCode.ShouldContain("SharedTask");