Jump to content



Photo

.NET Framework 4.5 stupid question


  • Please log in to reply
5 replies to this topic

#1 Joni_78

Joni_78

    Neowinian Senior

  • Joined: 19-April 04
  • Location: Finland
  • OS: Windows 8 Pro with Media Center, OS X Mavericks 10.9.4
  • Phone: Nokia Lumia 920

Posted 07 December 2012 - 08:21

If I've made a simple app with VS2012, net framework 4.5, should i require W7 users in installer to download v4.5 or does that app work with 3.5?


#2 Andre S.

Andre S.

    Asik

  • Tech Issues Solved: 11
  • Joined: 26-October 05

Posted 07 December 2012 - 08:31

The target framework has to be installed on any machine you want to application to run on. If the app targets .NET 4.5, .NET 4.5 has to be installed for the app to run.

#3 OP Joni_78

Joni_78

    Neowinian Senior

  • Joined: 19-April 04
  • Location: Finland
  • OS: Windows 8 Pro with Media Center, OS X Mavericks 10.9.4
  • Phone: Nokia Lumia 920

Posted 07 December 2012 - 08:32

Thanks

#4 DDStriker

DDStriker

    Neowinian Senior

  • Joined: 01-August 05

Posted 07 December 2012 - 08:32

If I've made a simple app with VS2012, net framework 4.5, should i require W7 users in installer to download v4.5 or does that app work with 3.5?



You should be able to set vs2012 to use .net 3.5

Edited by DDStriker, 07 December 2012 - 08:33.


#5 ajua

ajua

    Neowinian Senior

  • Joined: 12-February 07
  • Location: Mexico

Posted 16 December 2012 - 03:39

If your application is not making use any of the features of the latest .NET Frameworks, compile it against 3.5. This way you don't have to worry about your users having installed 4.0 or 4.5, specially if your app doesn't need them.

#6 libertas83

libertas83

    Neowinian

  • Joined: 02-November 05

Posted 16 December 2012 - 04:06

In the end, you should program in whichever .NET version you want to use. As long as you handle the installer properly, it won't matter if they have .NET Framework 4.5 installed or not because your installer should handle it.

I would recommend staying with 4.5 because you have a much more complete API with features that you can use with tons of improvements you can use, including security improvements.

For your installer, it should detect if the version required is there and if not, install it. For .NET Framework 4+ you can have the Client Profile installed which is a smaller version of the Framework to make it easier for end user installs. Microsoft should have plenty of documentation on how best to handle it.