I’m converting a fairly large project from using .NET 3.5 to .NET 4 using Visual Studio 2010. I made sure the Target Framework setting on each project file was set to target .NET 4. I also converted third party dlls to .NET 4 or removed the dependancies. However, when I run my program on Windows 8 dev preview, it always pops up dialogs that asks user to enable .NET 3.51. I found that if I use an *.exe.config file it will suppress the dialog.
How do I check if I missed any assemblies that are still using .NET 3.5 or older references? Or is this caused by some other problem? Does *.exe manifest files affect .NET runtime version?
Please help if you have any idea what is wrong or you ran into something similar. Thanks in advance.
Root cause is most likely one of the following in Windows 8 Preview:
As far as your description, I would guess #3. As long as you are playing with a non-RTMed OS, I would bet there are some issues that people here will not be able to track down.