Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 534
Marco Filippozzi Avatar asked Nov 02 '17 15:11

Marco Filippozzi


People also ask

How do I enable .NET Framework 4?

Select Start > Control Panel > Programs > Programs and Features. Select Turn Windows features on or off. If not already installed, select Microsoft . NET Framework and click OK.

What is the .NET Framework for Visual Studio 2017?

Visual Studio 2017 supports the following implementations: . NET Framework versions 4.7, 4.6.


1 Answers

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

like image 53
arlvin Avatar answered Oct 02 '22 12:10

arlvin