Поделиться через


Prerequisites dialog box

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The Prerequisites dialog box specifies which prerequisite components are installed, how they are installed, and which order the packages are installed.

Prerequisites dialog box in Visual Studio

To access the dialog box, select a project node in Solution Explorer, and then select Project > Properties. When the Project Designer appears, select the Publish tab, and then select Prerequisites. For Setup projects, on the Project menu, click Properties. When the Property Pages dialog box appears, click Prerequisites.

UIElement list

Element Description
Create setup program to install prerequisite components Includes the prerequisite components in your application's Setup program (Setup.exe) so that they'll be installed before your application, in order of dependency. By default, this option is selected. If it is not selected, no Setup.exe is created.
Choose which prerequisites to install Specifies whether to install components such as .NET Framework and C++ runtime libraries.

For example, by selecting the check box next to SQL Server 2012 Express, you specify that the Setup program must verify whether this component is installed on the target computer, and install it if it's not.

For detailed information about each prerequisite package, see Prerequisites information.
Download prerequisites from the component vendor's web site Specifies that the prerequisite components be installed from the vendor's website. This is the default option.
Download prerequisites from the same location as my application Specifies that the prerequisite components be installed from the same location as the application. This copies all the prerequisite packages to the publish location. For this option to work, the prerequisite packages must be on the development computer.
Download prerequisites from the following location Specifies that the prerequisite components be installed from the location that you enter. You can use the Browse button to select a location.

Note

For information on where to put prerequisites, see Create bootstrapper packages.

Prerequisites information

The prerequisite components that appear in the Prerequisites dialog box might differ from those in the following list. The prerequisite packages listed in the Prerequisites Dialog Box are set automatically the first time that you open the dialog box. If you subsequently change the project's target framework, you have to select the prerequisites manually to match the new target framework.

Element Description
.NET Framework 3.5 SP1 This package installs the following:

- .NET Framework versions 2.0, 3.0, and 3.5.
- Support for all .NET Framework versions on 32-bit (x86) and 64-bit (x64) operating systems.
- Language packs for each .NET Framework version that is installed with the package.
- Service packs for .NET Framework 2.0 and 3.0.

.NET Framework 3.0 is included with Windows Vista, and .NET Framework 3.5 is included with Visual Studio. .NET Framework 3.5 is required for all Visual Basic and C# projects that are compiled for 32-bit operating systems and for which the target framework is set to .NET Framework 3.5, and for Visual Basic and C# projects compiled for 64-bit operating systems. (IA64 is not supported.) Note that Visual Basic and C# projects are compiled for any CPU architecture by default. For more information, see Framework targeting overview and Deploy prerequisites for 64-bit apps.
Microsoft .NET Framework 4.x This package installs the .NET Framework 4.x for both the x86 and x64 platforms.
Microsoft System CLR Types for SQL Server 2014 (x64 and x86) This package installs Microsoft System CLR Types for SQL Server 2014 for either x64 or x86.
SQL Server 2008 R2 Express This package installs Microsoft SQL Server 2008 R2 Express, a free edition of Microsoft SQL Server 2008 R2, an ideal database for small web, server, or desktop applications. It can be used for free for development and production.
SQL Server 2012 Express This package installs Microsoft SQL Server 2012 Express.
SQL Server 2012 Express LocalDB This package installs Microsoft SQL Server 2012 Express LocalDB.
Visual C++ "14" Runtime Libraries (ARM) This package installs the Visual C++ run-time libraries for the Itanium architecture, which provide routines for programming for the Microsoft Windows operating system. These routines automate many common programming tasks that are not provided by the C and C++ languages.

For more information, see C Run-Time Library Reference.
Visual C++ "14" Runtime Libraries (x64) This package installs the Visual C++ run-time libraries for the x64 operating systems, which provide routines for programming for the Microsoft Windows operating system. These routines automate many common programming tasks that are not provided by the C and C++ languages.

For more information, see C Run-Time Library Reference.
Visual C++ "14" Runtime Libraries (x86) This package installs the Visual C++ run-time libraries for the x86 operating systems, which provide routines for programming for the Microsoft Windows operating system. These routines automate many common programming tasks that are not provided by the C and C++ languages.

For more information, see C Run-Time Library Reference.

See also