3 writes to SourceCode
Microsoft.Build.Tasks.Core (3)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
414taskInfo.SourceCode = codeElement.Value; 456taskInfo.SourceCode = FileSystems.Default.ReadFileAllText(sourceAttribute.Value.Trim()); 523taskInfo.SourceCode = GetSourceCode(taskInfo, parameters);
10 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)); 516if (String.IsNullOrWhiteSpace(taskInfo.SourceCode)) 718_log.LogIncludeGeneratedFile(fileNameInBinlog, taskInfo.SourceCode); 721File.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 (1)
RoslynCodeTaskFactory_Tests.cs (1)
998Verify(taskInfo.SourceCode, _verifySettings).GetAwaiter().GetResult();