This error gave me a hard time. This is how I solved it. First I tried to uninstall 8.1. VS told me that it was successful but all the files were still there. So I trashed the entire folder, did another uninstall in VS, just to make sure, and reinstalled it. The nldef.n file appeared by magic.