I have a set of windows services that were installed using the InstallUtil utility from the .NET 3.5 version.
If I migrated the projects to 4.0, do I need to uninstall them and then reinstall them using the utility from the v4.0 directory for them to work?
Or is it enough to change the target version from the project properties, re-compile them, and copy them to the installed location?
Note: I’m using features from .NET 4.0 like dynamic types
The assembly identification will still be the same, you should not need to uninstall and reinstall the service to get it working.
Obviously you will need to ensure that the .NET 4.0 runtime is on the server, but that should do it. The service will need to be “stopped” when you go to update the exe.