Browse Source

Fix #934: Project generation: absolute path used for AssemblyInfo.cs module

pull/940/head
Siegfried Pammer 8 years ago
parent
commit
3bf182860d
  1. 4
      ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs

4
ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs

@ -283,8 +283,8 @@ namespace ICSharpCode.Decompiler.CSharp @@ -283,8 +283,8 @@ namespace ICSharpCode.Decompiler.CSharp
const string prop = "Properties";
if (directories.Add(prop))
Directory.CreateDirectory(Path.Combine(targetDirectory, prop));
string assemblyInfo = Path.Combine(targetDirectory, prop, "AssemblyInfo.cs");
using (StreamWriter w = new StreamWriter(assemblyInfo)) {
string assemblyInfo = Path.Combine(prop, "AssemblyInfo.cs");
using (StreamWriter w = new StreamWriter(Path.Combine(targetDirectory, assemblyInfo))) {
syntaxTree.AcceptVisitor(new CSharpOutputVisitor(w, settings.CSharpFormattingOptions));
}
return new Tuple<string, string>[] { Tuple.Create("Compile", assemblyInfo) };

Loading…
Cancel
Save