Partager via


Web Deploy appPoolNetFx Provider

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2

appPoolNetFx

The appPoolNetFx provider displays or sets the .NET Framework version of an application pool.

Example

msdeploy -verb:sync -source:appPoolNetFx="Source Web Site" -dest:appPoolNetFx="Target Web Site"

The appPoolNetFx provider takes an argument that is the path of a Web site or Web application.

Note

The appPoolNetFx provider applies only to Web Deploy 2.0 and later versions.

In a dump operation, if you use the -xml operation setting, the .NET Framework version of the application pool for the specified site or application is displayed in XML format.

In a sync operation, when you specify source and destination Web site or Web application paths as arguments, the application pool version on the destination is set to the application pool version of the source. If you specify a Web site or Web application path for the destination argument but not for the source argument, the application pool version of the destination is set to "v2.0".

Custom Provider Settings

The appPoolNetFx provider has one optional custom provider setting.

NetFxVersion

In a sync operation, the NetFxVersion provider setting specifies a .NET Framework version for the destination application pool. This setting is useful when you want to change the application pool version on the destination to a specific version without regard to the version on the source. The default value for this provider setting is "v2.0". This setting has no effect in a dump operation, and cannot be applied to a source argument in a sync operation.

Setting usage: ,NetFxVersion=v4.0

Example usages

1) Display the .NET Framework version of the application pool for the Default Web Site in XML format.

msdeploy.exe -verb:dump -source:appPoolNetFx="Default Web Site" -xml

2) Change the version of the application pool for the Web site on the destination to match the application pool version of the Web site on the source.

msdeploy -verb:sync -source:appPoolNetFx="Source Web Site" -dest:appPoolNetFx="Default Web site"

3) Change the application pool version on the destination to .NET Framework version 4, regardless of the version of the application pool on the source.

msdeploy -verb:sync -source:appPoolNetFx -dest:appPoolNetFx="Default web site",netfxversion=v4.0

4) Do not specify an argument for the source provider, which sets the application pool version on the destination to its default value of "v2.0".

msdeploy -verb:sync -source:appPoolNetFx -dest:appPoolNetFx="Default Web Site"

See Also

Concepts

Web Deploy appPoolEnable32Bit Provider
Web Deploy appPoolPipeline Provider