3 writes to SourceCode
Microsoft.Build.Tasks.Core (3)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
415taskInfo.SourceCode = codeElement.Value; 465taskInfo.SourceCode = FileSystems.Default.ReadFileAllText(resolvedPath); 532taskInfo.SourceCode = GetSourceCode(taskInfo, parameters);
13 references to SourceCode
Microsoft.Build.Tasks.Core (9)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (6)
222return taskInfo.SourceCode; 250executeMethod.Statements.Add(new CodeSnippetStatement(taskInfo.SourceCode)); 256codeTypeDeclaration.Members.Add(new CodeSnippetTypeMember(taskInfo.SourceCode)); 525if (String.IsNullOrWhiteSpace(taskInfo.SourceCode)) 727_log.LogIncludeGeneratedFile(fileNameInBinlog, taskInfo.SourceCode); 730File.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)
994Verify(taskInfo.SourceCode, _verifySettings).GetAwaiter().GetResult(); 1309taskInfo.SourceCode.ShouldContain("TestTask", customMessage: "Should have loaded code from file"); 1356taskInfo.SourceCode.ShouldContain("AbsolutePathTask"); 1404taskInfo.SourceCode.ShouldContain("SharedTask");