coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.82k stars 356 forks source link

Support for .NET 4.0 #107

Closed matthewadams closed 7 years ago

matthewadams commented 9 years ago

winsw.exe targets .NET 2.0. Recent Windows distros (like 8.1) don't include .NET 3.5 or earlier. This allows the current winsw.exe to run against both .NET 2.0 & 4.0. See:

This change adds a .exe.config file to the service executable, allowing it to run unchanged against .NET 4.0.

matthewadams commented 9 years ago

I didn't check other pull requests before doing this work. https://github.com/coreybutler/node-windows/pull/83 looks like a bit better implementation (it's been quite a while since I developed on Windows). You might consider my winsw.exe.config file, rather than hard-coding the contents like @gm112 did; it has a bit more content that might help the user unfamiliar with the .NET <configuration> element & its children.

coreybutler commented 7 years ago

I'm finally closing this (.NET 4+ support is now in via another PR). I'm only 2yrs late in thanking you (my apologies).