Deleted bin and gen.

They should *NOT* be checked into version control.
Added .gitignore.
Fixed the project not compiling.

Missing refs.