6 writes to SourcePath
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (1)
30
SourcePath
= null!;
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (5)
CopyRefAssemblyTests.cs (5)
35
SourcePath
= Path.Combine(dir.Path, "does_not_exist.dll")
52
SourcePath
= file.Path,
71
SourcePath
= file.Path,
92
SourcePath
= source.Path,
123
SourcePath
= source.Path,
9 references to SourcePath
Microsoft.Build.Tasks.CodeAnalysis (9)
src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (9)
36
if (!File.Exists(
SourcePath
))
38
Log.LogErrorWithCodeFromResources("General_ExpectedFileMissing",
SourcePath
);
47
source = ExtractMvid(
SourcePath
);
51
Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadSource3",
SourcePath
, e.Message, e.StackTrace);
56
Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_SourceNotRef1",
SourcePath
);
70
Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_Changed",
SourcePath
, File.GetLastWriteTimeUtc(
SourcePath
).ToString("O"), source, DestinationPath, File.GetLastWriteTimeUtc(DestinationPath).ToString("O"), destination);
86
Log.LogMessageFromResources(MessageImportance.Normal, "CopyRefAssembly_Copying",
SourcePath
, DestinationPath);
87
File.Copy(
SourcePath
, DestinationPath, overwrite: true);