Fix command line and Visual Studio builds
* Fix reference to targets
* Add gitignore and gitattributes files
* Set correct package path 'net40'
* Add NuGet package references for VS build