IBuildSettings.ApplicationRequiresElevation Property
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
Property ApplicationRequiresElevation As Boolean
bool ApplicationRequiresElevation { get; set; }
property bool ApplicationRequiresElevation {
bool get ();
void set (bool value);
}
abstract ApplicationRequiresElevation : bool with get, set
function get ApplicationRequiresElevation () : boolean
function set ApplicationRequiresElevation (value : boolean)
Property Value
Type: System.Boolean
true if the installed component runs with elevated permissions; otherwise false.
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 being 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.