How far along does software compiled for .NET 3.5 get before crashing on a system that only has .NET 2.0 installed?
The application I am developing uses WPF and requires .NET 3.5, but I would like to display a user-friendly dialog (rather than crashing) if the user does not have it installed.
Are there any standard ways to do this, or official Microsoft documentation on it?
EDIT: In an ideal world I'd just check that any .NET dependencies are satisfied during installation. Since some applications do not have installers and since users could potentially uninstall .NET after the application is installed, I find the answers below to be useful.