TextAnalysisTool.NET to Windows 8: "Y U no run me under .NET 4?" [How to avoid the "please install .NET 3.5" dialog when running older .NET applications on the Windows 8 Developer Preview]

**

This blog has moved to a new location and comments have been disabled.

All old posts, new posts, and comments can be found on The blog of dlaa.me.

See you there!

Comments

  • Anonymous
    September 27, 2011
    Regarding your automatic prompting for bridging the gap when missing an older .NET framework... I tried to install Zune (because I have a Windows Phone 7) and it failed complaining about it couldn't find .NET 2.0. And it never prompted me to download/install it...

  • Anonymous
    September 28, 2011
    Stivz, Sorry to hear that - the Windows 8 Developer Preview still seems to have some rough edges... What should work for you is manually installing .NET 3.5 (includes .NET 2.0) and then I'd expect Zune to have an easier time installing. If you're looking for a way to easily trigger the built-in .NET 3.5 install prompt, you can use TextAnalysisTool.NET - just delete the .config file before you run it and you'll be in the opposite situation of what I describe in the post above. ;)

  • Anonymous
    October 01, 2011
    Hi, is there any way to apply this trick system-wide? Could something be done within machine.config maybe? Might be a little risky, but I don't mind :)

  • Anonymous
    October 01, 2011
    ZmarszczonyFreddy, I'm not currently aware of a way to apply this change machine-wide. The documentation for the supportedRuntime element used above (msdn.microsoft.com/.../w4atty68.aspx) says, "This element can be used in the application configuration file.". While that doesn't explicitly say it can't be used in machine.config, it's pretty suggestive. Furthermore, I tried making the above change to machine.config and it did not appear to take effect - though I didn't spend much time tinkering because I expected it not to work by then. If I come across a way to do this, I'll let you know. And if you figure something out, I'd be happy to credit you with the solution! :)