>>When you compiled the sample in VS2012, did you change the target .NET framework or kept it as it is?
I didn't change anything, it says .NET Framework version=4.0
>>So it is VMWare bug, is that right?
I have no idea, I guess one would sure be suspicious. I didnt't try to debug the program to see what the error is. I also have not used the W7 VM with VS2010 to develop for W8, I do that in W8 with VS2012.
You might try requesting support from VMWare.
This forum is not official support, it is users confusing other users.
Lou