joelpurra / xmouse-controls

Microsoft Windows utility to manage the active window tracking/raising settings. This is known as x-mouse behavior or focus follows mouse on Unix and Linux systems.
https://joelpurra.com/projects/X-Mouse_Controls/
GNU General Public License v3.0
229 stars 18 forks source link

Dual target .net-3.5 and .net-4.0 #11

Closed binki closed 6 years ago

binki commented 6 years ago

On a fresh Windows 10 install, trying to run xmouse-controls shows this:

image

It is possible to build the utility in such a way that Windows is willing to use .net-4.0 to run it: https://stackoverflow.com/a/20865375 . Since this is a simple utility, it would be nice if it listed both SKUs so that it would just work out of the box everywhere without requiring installation of .net-3.5.

I tested the app.config method and it works as long as you have the .config file next to the executable. I will make a PR soon and may investigate if I can do this with the embedded manifest somehow instead of only in the external .config file.

joelpurra commented 6 years ago

@binki: thanks for looking into this! Long gone is the dream of no version problems in .net ;)

binki commented 6 years ago

Thanks for merging this and building the beta ZIP! I don’t do it happen often, but this really does make configuring a freshly installed Windows 10 VM or machine (which doesn’t have .net-3.5) much easier.