Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows .NET
Is there any way to target Vista / 7 / 8 at once?
I heard that Vista came with .Net 3.0 and Win 8 came with .Net 4.5
.Net 4.5 dose not support .Net 3.5 or older
Enabling .Net 3.5 in Win 8 control panel will not an option.
I need to make an EXE that people will just open and use (NO install).
Is there any way like placing a DLL around the EXE or other Idea?
Am using Visual studio 2012.
 
And what is the best .Net version to target in my case? .Net 2.0 or 3.0? I don't need to target XP, Only Vista or later OSs
 
Thank you
Posted 16-Mar-13 16:24pm
Edited 16-Mar-13 16:47pm
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

There is no such problem, really. The .NET projects target CPU instruction-set architecture (and it's the best to use "Any CPU" whenever possible, for maximum compatibility) and some .NET Framework version. If the target of this version is installed on the target OS, the .NET solution will work.
 
Of course, this is the case when the solution does not use any OS-specific tricks. It's the best to keep .NET code OS-agnostic, which is also pretty easy.
 
—SA
  Permalink  
Comments
wedagedara at 16-Mar-13 21:46pm
   
Thank you,
And what is the best .Net version to target in my case? .Net 2.0 or 3.0?
I don't need to target XP, Only Vista or later OSs
Sergey Alexandrovich Kryukov at 16-Mar-13 23:11pm
   
If you have the Windows 2012, you can target any version available so far. I would advise to target .NET no earlier than 3.5. (Even though v.2.0 was practically the first really decent version, it lacks WPF and lambda expression, to list only the most important innovations.) I don't see why would you need to go with older versions of .NET. Installation of any version of the framework is free for the OS user. You should also understand that .NET versions are backward-compatible. If you install a later version of .NET, you would need to install only one version; assemblies targeted to older versions will be supported anyway.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 515
1 Maciej Los 349
2 Richard MacCutchan 220
3 BillWoodruff 209
4 Mathew Soji 160
0 OriginalGriff 8,654
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,229
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 16 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100