This looks like a very fragile comparison. Shouldn't the version number depend on the target framework?