Share via


BuildSettings.ApplicationRequiresElevation Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets a value indicating whether a component runs with elevated permissions when it is installed on a target computer.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks.Deployment.Bootstrapper
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property ApplicationRequiresElevation As Boolean
public bool ApplicationRequiresElevation { get; set; }
public:
virtual property bool ApplicationRequiresElevation {
    bool get () sealed;
    void set (bool value) sealed;
}
abstract ApplicationRequiresElevation : bool with get, set 
override ApplicationRequiresElevation : bool with get, set
final function get ApplicationRequiresElevation () : boolean 
final function set ApplicationRequiresElevation (value : boolean)

Property Value

Type: System.Boolean
true if the installed component runs with elevated permissions; otherwise false.

Implements

IBuildSettings.ApplicationRequiresElevation

Remarks

This property can be set in the project file, but it is not exposed in the MSBuild schema.

A component runs with elevated permissions when it writes a registry key or is installed to the global assembly cache. For example, if you are installing assemblies to the global assembly cache, you have to set this property to true.

.NET Framework Security

See Also

Reference

BuildSettings Class

Microsoft.Build.Tasks.Deployment.Bootstrapper Namespace

ApplicationRequiresElevation