Build .vdproj has error:To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'DotNetFX40KB2468871\dotNetFx40_Full_x86_x64.exe'

Ryan 0 Reputation points
2024-07-11T02:46:15.99+00:00

My VM is windows 10 ,VS2013 professional.

The error is shown as following pictures:

图像 (1)

I have tried below links :

1.[Microsoft .NET Framework 4 (Standalone Installer)]](https://www.microsoft.com/en-us/download/details.aspx?id=17718)

 It tells me I have installed.

图像 (4)

2.https://www.microsoft.com/en-us/download/details.aspx?id=3556

It seems that windows10 is not supported?

I put them under the C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages or C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1a\Bootstrapper\Packages but it did not work at all

Based this thread :https://stackoverflow.com/questions/16864833/enabling-download-prerequisites-from-the-same-location-as-my-application

I tried to cancel selection it in the Prerequisites dialog ,it builds successfully but it cannot install and the vm comes to blue screen.

Other infos:

图像 (2)

图像 (3)

Do you have any idea how can I overcome the problem\error?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,872 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
966 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,009 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 43,051 Reputation points
    2024-07-11T06:24:49.43+00:00

    Visual Studio 2013 is quite old and is now out of support. Versions of the .Net Framework 4.x lower than 4.7 are also out of support.

    The registry editor image that was posted shows that the Windows 10 system already has .Net Framework version 4.8.1 installed. You can refer to .NET Framework versions and dependencies for more information about various versions of the .Net Framework and the Windows systems on which they are installed/installable.

    Since the system already has 4.8.1 installed you cannot install a lower version of the framework. You should be able to target a lower version when you build your project and it should be able to run on a system with 4.8.1 installed.

    However, assuming that you satisfy license requirements available at Visual Studio License Directory, my recommendation is to install a current, supported version of Visual Studio Community 2022 and the related Visual Studio Installer Projects extension.