Two patches

Hello Francisco!  I'm the same Glen Parker that was a committer on this project many years ago.

Two patches here
Adding project/solution files for VS2012 and .gitignore stuff.
Improved the error handling in NpgsqlClosedState.Open().