fehaar/FFWD — pull request #8 by Elideb (2012-03-12 17:49:39+00:00)
Title: Couple of fixes to ProjectInitializer

Hi there.

I fixed a couple of issues I found in ProjectInitializer:
- In on of my PCs, after renaming FFWD.Template.sln to newprojectname.sln, EnumerateFiles would return the new file, which would be copied over itself, with the corresponding exception. I added a check to make sure files were only copied if the names differ.
- After renaming, double clicking in the new .sln file would not launch a new Visual Studio instance. That's because the new file contents are written without setting an encoding, and were thus plain ASCII. Visual Studio only seems to autorun with UTF8 files. My patch reads and writes files to be fixed using UTF8 encoding, so Visual Studio uses them as expected.

I hope this helps future users of this project get started.

Thanks for the effort and good luck,
Elideb