1

So i know that C# require .Net be installed, because of BCL, CLR, etc...

But i have a WPF application, supposed to work in win98-XP, and can't install .Net higher, than version 2, so WPF requires 3.5 afaik.

So idea is in static linking. Can I staticaly link all used libraries (mscorlib, clr, etc) and launch it like a simple native application? I don't care if application size is many mbytes, it just should work.

7
  • WPF likely highly depends on things in the NT side of things. I doubt it will run. Commented Dec 2, 2013 at 10:53
  • May be helpful: stackoverflow.com/questions/953146/… Commented Dec 2, 2013 at 10:53
  • 2
    What you will find is that WPF relies on Windows API functionality that does not exist on Windows 98. You are going to need to recalibrate your expectations. Commented Dec 2, 2013 at 10:57
  • 1
    Personally, I wouldn't want to support a version of the operating system that Microsoft itself doesn't support... Commented Dec 2, 2013 at 10:58
  • 3
    @AlexJoukovsky The fact that you state that the question is not a duplicate does not mean that it is not a duplicate. Commented Dec 2, 2013 at 11:02

1 Answer 1

6

In fact the initial version of WPF ran on .net 3.0 so in principle that's the minimum version that you need. Of course, .net 3.0 requires XP or later and does not support Windows 98.

The essential problem that you have is not that the framework installer won't run on Windows 98. The problem is that .net 3.0 and the WPF framework use functionality that does not exist on Windows 98. Even if you get all the .net framework DLLs onto Windows 98, they won't run because the depend on functionality that does not exist on Windows 98.

Sign up to request clarification or add additional context in comments.

1 Comment

Tnx for exhaustively complete answer.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.