About the leading newline in Visual Studio solution files.
Posted
by mafutrct
on Stack Overflow
See other posts from Stack Overflow
or by mafutrct
Published on 2010-03-18T12:12:26Z
Indexed on
2010/03/18
13:01 UTC
Read the original article
Hit count: 133
visual-studio-2008
|projects-and-solutions
Sometimes, for unknown reasons, VS 2008 creates solution files led by a newline.
Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 [...]
This happened on various machines, and I have no idea why this is. A Google search did not yield any useful results.
Now, why do I worry about this? Because I can't open these solutions in Windows Explorer. I have to open VS, select File -> Open -> Solution and it works fine. But to open solutions from within Explorer, I have to edit the sln file and remove the leading newline.
Edit: After Leom's suggestion I tested a few times and found that the issue is solely dependent on the leading newline.
© Stack Overflow or respective owner