This project has moved and is read-only. For the latest updates, please go here.


error reading Visual Studio 2013 .sln files


I'm using SLNTools.Core 1.1.1. When I try to read a Visual Studio 2013 .sln files, I get this error:

unable to read solution files with:
Additional information: Invalid line read on line #4.
Found: VisualStudioVersion = 12.0.20827.3
Expected: A line beginning with 'Project(' or 'Global'.

Visual Studio adds a couple of additional headers:

Visual Studio 2013

VisualStudioVersion = 12.0.20827.3
MinimumVisualStudioVersion = 10.0.40219.1

As a workaround, I've been deleting those properties manually, but it would be cool to not have to do that.

btw, I just uploaded the binary to NuGet, because it wasn't there.

file attachments

Closed Jan 25, 2014 at 4:29 AM by christianwarren
Fixed in version 1.1.2.


prograholic wrote Jan 14, 2014 at 8:25 AM

I created patch which fix this issue: i determine version of SLN file (assume that first line in SLN contains version) and depending on version perform reading of header of SLN file. Attach contains this fix

Greg_at_eSolar wrote Jan 14, 2014 at 4:55 PM

I get the exact same error using VS 2012 :-(
Huge bummer... I was really looking to see if this tool would be the solution (pun intended) to my SLN woes!

Greg_at_eSolar wrote Jan 14, 2014 at 5:03 PM

Actually on closer inspection the issue was that one of the developers was using 2013 :-(

wrote Jan 25, 2014 at 4:29 AM

ctaggart wrote Jan 25, 2014 at 5:54 PM

Thanks for the new build Christian. I pushed the updated library to NuGet.

It is super easy to do. Let me know if you want me to transfer ownership to you. Also note that you left the versions as Not a big deal.