none
VS 2012 & .net framework developed WPF application installation on Windows XP RRS feed

  • Question

  • We are developing a WPF application using VS2012 and .net framework 4.5. It'll be installed on some of the Windows XP systems so will it work or not.
    If not, can we make it work using some pack?

    My app will not run at all on win xp or only .net framework 4.5 speacific features will not work.

    Wednesday, March 6, 2013 2:02 PM

Answers

  • Unfortunately, Visual Studio 11 is only officially compatible with Windows 7 and above. That means applications made with Visual C# 11, Visual Basic 11, Visual F# 11 and Visual C++ 11 Windows Forms applications targeting new features in .NET Framework 4.5 (which is the default build configuration in Visual Studio; though it can be changed to an older .NET Framework version too) cannot run on Windows XP.

    Mark Answered, if it solves your question and Vote if you found it helpful.
    Rohit Arora

    Wednesday, March 6, 2013 2:43 PM
  • To clarify Rohit's post, the OS requirements of VS 2012 isn't relevant for purposes of apps you build.  The target framework is relevant.  As Rohit mentioned a .NET 4.5 app requires Vista SP2+ to run.  You can get the framework requirements here - http://msdn.microsoft.com/en-us/library/8z6watww.aspx. 
    Wednesday, March 6, 2013 3:39 PM
    Moderator

All replies

  • Unfortunately, Visual Studio 11 is only officially compatible with Windows 7 and above. That means applications made with Visual C# 11, Visual Basic 11, Visual F# 11 and Visual C++ 11 Windows Forms applications targeting new features in .NET Framework 4.5 (which is the default build configuration in Visual Studio; though it can be changed to an older .NET Framework version too) cannot run on Windows XP.

    Mark Answered, if it solves your question and Vote if you found it helpful.
    Rohit Arora

    Wednesday, March 6, 2013 2:43 PM
  • To clarify Rohit's post, the OS requirements of VS 2012 isn't relevant for purposes of apps you build.  The target framework is relevant.  As Rohit mentioned a .NET 4.5 app requires Vista SP2+ to run.  You can get the framework requirements here - http://msdn.microsoft.com/en-us/library/8z6watww.aspx. 
    Wednesday, March 6, 2013 3:39 PM
    Moderator
  • Thanks for your reply. On Windows XP, i dont need to do any development so no need of VS2012, i just need to install and run my WPF app. As i understood from your reply, it wont even run on WinXP.

    If in my app, i am not using any .net framework 4.5 specific features then also it wont run on WinXP?

    If in my app, i am not using any .net framework 4.5 specific features and i change .net framework version to say 3.5 or 4 to build and then create installer, then also it wont run on WinXP?

    Thursday, March 7, 2013 2:36 PM
  • That is incorrect.  If you change the target framework of your application to 4.0 or less then it will run under XP (SP2+ IIRC).  If you leave the target framework of your app to 4.5 then end users will need Vista+.  The framework requirements link I posted contains the minimum hardware/software requirements for each version of the framework that your app might use.

    Michael Taylor - 3/7/2013
    http://msmvps.com/blogs/p3net

    Thursday, March 7, 2013 2:59 PM
    Moderator
  • Thanks Michael for your reply, sorry about delay in my response.

    So i can develop app using VS2012 with .net framework 4.0 & can run it on WinXP. Do i need some service pack on XP to make this app work?

    Tuesday, April 30, 2013 2:51 PM
  • Windows XP SP3 is the Minimum Requirement for .NET 4.0.

    Thanks.


    Happy Coding, Kishore.

    Tuesday, April 30, 2013 3:27 PM
  • .NET v4 system requirements are here: http://msdn.microsoft.com/en-us/library/8z6watww(v=vs.100).aspx

    .NET v4.5 requirements (for later use) are here: http://msdn.microsoft.com/en-us/library/8z6watww(v=vs.110).aspx

    Tuesday, April 30, 2013 3:41 PM
    Moderator
  • Thanks for your reply.

    Kishore: This link has two comments on Service Pack required for WinXP:-

    The Minimum Requirement for .NET 4.0 is Windows XP SP2 + Windows Imaging Component.

    Another comment says same as what you said so can you please tell me if you tried it yourself or MS has confirmed it somewhere: Windows XP SP3 is the Minimum Requirement for .NET 4.0.

    http://msdn.microsoft.com/en-us/library/8z6watww(v=vs.100).aspx

    Thursday, May 2, 2013 4:16 AM
  • Hello..

    Check out "Installation Requirements" section in the below link.

    http://msdn.microsoft.com/en-us/library/5a4x27ek(v=vs.100).aspx

    I have used framework 4.0 in XP in one of my projects. But I did not verify 4.0 on SP2. Reason is, I used MVC3 in that project. MVC 3 must have SP3. So, I have directly installed SP3.

    Thanks.


    Happy Coding, Kishore.

    Thursday, May 2, 2013 4:28 AM
  • Ok Thanks. I am using WPF with MVVM so i think SP3 will work in my case as well.
    Thursday, May 2, 2013 6:08 AM