Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

.sln and .csproj files are now read and stored using UTF8. Visual Stu…

…dio won't launch if double clicking a non-UTF8 .sln file.
  • Loading branch information...
commit 8c3a41dec43dfd53fa8b3ab54fe0be1b31db582d 1 parent 5439c47
@Elideb Elideb authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Tools/ProjectInitializer/ProjectInitializer/Program.cs
View
4 Tools/ProjectInitializer/ProjectInitializer/Program.cs
@@ -101,9 +101,9 @@ private void CopyContents(string dir, string newDir)
private void FixFileContents(string newFileName)
{
- string text = File.ReadAllText(newFileName);
+ string text = File.ReadAllText(newFileName, Encoding.UTF8);
text = text.Replace(templateName, projectName);
- File.WriteAllText(newFileName, text);
+ File.WriteAllText(newFileName, text, Encoding.UTF8);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.