diff --git a/src/Compilers/Shared/ShadowCopyAnalyzerAssemblyLoader.cs b/src/Compilers/Shared/ShadowCopyAnalyzerAssemblyLoader.cs index 6b390e23fa234eea5195081a0e3032ae98cbb2d2..b66d554ed3b52d792ae88f71ba2e966be095a1c0 100644 --- a/src/Compilers/Shared/ShadowCopyAnalyzerAssemblyLoader.cs +++ b/src/Compilers/Shared/ShadowCopyAnalyzerAssemblyLoader.cs @@ -103,7 +103,7 @@ protected override Assembly LoadImpl(string fullPath) return base.LoadImpl(shadowCopyPath); } - private string CopyFileAndResources(string fullPath, string assemblyDirectory) + private static string CopyFileAndResources(string fullPath, string assemblyDirectory) { string fileNameWithExtension = Path.GetFileName(fullPath); string shadowCopyPath = Path.Combine(assemblyDirectory, fileNameWithExtension); @@ -137,7 +137,7 @@ private string CopyFileAndResources(string fullPath, string assemblyDirectory) return shadowCopyPath; } - private void CopyFile(string originalPath, string shadowCopyPath) + private static void CopyFile(string originalPath, string shadowCopyPath) { var directory = Path.GetDirectoryName(shadowCopyPath); Directory.CreateDirectory(directory); @@ -147,7 +147,7 @@ private void CopyFile(string originalPath, string shadowCopyPath) ClearReadOnlyFlagOnFile(new FileInfo(shadowCopyPath)); } - private void ClearReadOnlyFlagOnFiles(string directoryPath) + private static void ClearReadOnlyFlagOnFiles(string directoryPath) { DirectoryInfo directory = new DirectoryInfo(directoryPath); @@ -157,7 +157,7 @@ private void ClearReadOnlyFlagOnFiles(string directoryPath) } } - private void ClearReadOnlyFlagOnFile(FileInfo fileInfo) + private static void ClearReadOnlyFlagOnFile(FileInfo fileInfo) { try {