|
|
|
|
@ -38,6 +38,7 @@ namespace ICSharpCode.SharpDevelop.Dom
@@ -38,6 +38,7 @@ namespace ICSharpCode.SharpDevelop.Dom
|
|
|
|
|
#region Cache management
|
|
|
|
|
public string SaveProjectContent(ReflectionProjectContent pc) |
|
|
|
|
{ |
|
|
|
|
try { |
|
|
|
|
// create cache directory, if necessary
|
|
|
|
|
Directory.CreateDirectory(cacheDirectory); |
|
|
|
|
|
|
|
|
|
@ -52,6 +53,11 @@ namespace ICSharpCode.SharpDevelop.Dom
@@ -52,6 +53,11 @@ namespace ICSharpCode.SharpDevelop.Dom
|
|
|
|
|
WriteProjectContent(pc, fs); |
|
|
|
|
} |
|
|
|
|
return fileName; |
|
|
|
|
} catch (IOException) { |
|
|
|
|
return null; |
|
|
|
|
} catch (UnauthorizedAccessException) { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ReflectionProjectContent LoadProjectContentByAssemblyName(string assemblyName) |
|
|
|
|
|