Reputation:
We are consultants who often works on client site on a Windows PC without admin right, which means we can't install anything.
Questions is: if I write my C# application targeting .NET framework 2.0, which is XP's default installation, will it be guaranteed to run on every PC?
In other words, will it be possible that one organization have decided to install XP on their PCs without the .NET framework? Is .NET 2.0 the core of XP, or is it just an optional feature that can be left out?
Upvotes: 3
Views: 2098
Reputation: 41
Yes. .NET framework is optional for Windows XP. Windows 7 has .NET framework version 3.5 as default.
Upvotes: 0
Reputation: 7672
Although the .NET framework is not guaranteed to be installed (it is an optional component), software such as Xenocode PostBuild (discontinued, but still functional for those who have copy), Spoon, or Mono (an alternative .NET framework that happens to be embeddable) can be used to run .NET applications on PCs that otherwise wouldn't be able to because the .NET framework isn't installed.
Upvotes: 2
Reputation: 16828
As far as I know .NET Framework 2.0 comes pre-installed on Vista and Windows 7. However, no version of the framework comes pre-installed on Windows XP. See the following:
What version of the .NET Framework is included in what version of the OS?
Upvotes: 4