Browse Source

Fixed bug introduced in rev. 2634: When creating a new project, ${USER} ${DATE} in the standard header etc. was not replaced with values.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2648 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts 2.2.1b
Daniel Grunwald 18 years ago
parent
commit
f537811abc
  1. 1
      src/Main/Base/Project/Src/Internal/Templates/Project/ProjectDescriptor.cs

1
src/Main/Base/Project/Src/Internal/Templates/Project/ProjectDescriptor.cs

@ -357,6 +357,7 @@ namespace ICSharpCode.SharpDevelop.Internal.Templates @@ -357,6 +357,7 @@ namespace ICSharpCode.SharpDevelop.Internal.Templates
// Textual content
StreamWriter sr = new StreamWriter(File.Create(fileName), ParserService.DefaultFileEncoding);
string fileContent = StringParser.Parse(file.Content, new string[,] { {"ProjectName", projectCreateInformation.ProjectName}, {"FileName", fileName}});
fileContent = StringParser.Parse(fileContent);
if (SharpDevelopTextEditorProperties.IndentationString != "\t") {
fileContent = fileContent.Replace("\t", SharpDevelopTextEditorProperties.IndentationString);
}

Loading…
Cancel
Save