Browse Source

Fix Access Denied error when opening the same type (thanks to Martin).

pull/15/head
Eusebiu Marcu 15 years ago
parent
commit
ab9f590fba
  1. 2
      src/Main/Base/Project/Src/Services/DecompilerService/DecompilerService.cs

2
src/Main/Base/Project/Src/Services/DecompilerService/DecompilerService.cs

@ -317,7 +317,7 @@ namespace ICSharpCode.SharpDevelop @@ -317,7 +317,7 @@ namespace ICSharpCode.SharpDevelop
string filePath = Path.Combine(tempFolder, file);
if (File.Exists(filePath))
File.Delete(filePath);
File.SetAttributes(filePath, FileAttributes.Temporary);
// write file
using (var sw = new StreamWriter(filePath, false))

Loading…
Cancel
Save