Marco Filippozzi
Marco Filippozzi

Reputation: 191

Missing .NET Framework 4.0 in Visual Studio 2017 Prerequisites when publishing

As you can see, .NET Framework 4.0 is missing

Hello, I need to publish my application with .NET Framework 4.0 (for windows XP support) but when trying to add it to the prerequisites it is missing. What can i do?

Upvotes: 8

Views: 7322

Answers (2)

arlvin
arlvin

Reputation: 379

i used the old, free "Bootstrap Manifest Generator" tool, which is a bit hard to find nowadays. My steps were as follows:

  1. I downloaded the .NET Framework 4.0 redistributable package: https://www.microsoft.com/en-za/download/confirmation.aspx?id=17718
  2. To get the package to appear in the "Prerequisites" dialog box, i downloaded the "Bootstrap Manifest Generator" tool from SoftPedia (http://www.softpedia.com/get/Programming/Other-Programming-Files/Bootstrapper-Manifest-Generator.shtml). I scanned my download with McAfee and it was safe.
  3. I installed the package and ran it. The series of images below illustrate the options that i selected on the tool:

Select "New Project" and then the "Package Manifest" option Select "New Project" and then the "Package Manifest" option - Fill-in the Project Name and Project Code, and then click the first icon above the white panel labeled "Package" - Browse to the redistributable package enter image description here

Enter the "Display Name" and then click the second icon above the white panel. The output folder will be highlighted in blue. enter image description here

Move the containing folder (navigate one level up to copy the "DotNETFX40" folder) to the location shown below (Note, i'm using VS2017 Community on Windows 10): enter image description here

In my WPF application, in the "Prerequisites" dialog, i now see the DotNETFX40 folder, as highlighted below. enter image description here

Now when i publish the application, the DotNETFX40 folder is published as well: enter image description here

Upvotes: 14

mm8
mm8

Reputation: 169200

I think you will have to use Visual Studio 2015 to be able to select .NET Framework 4.0 as a prerequisite.

The official support for .NET Framework 4 has ended: https://blogs.msdn.microsoft.com/dotnet/2015/12/09/support-ending-for-the-net-framework-4-4-5-and-4-5-1/

Upvotes: 4

Related Questions