다음을 통해 공유


ApplicationManifest.UseApplicationTrust Property

Gets or sets a value that specifies whether the Product, Publisher, and SupportUrl properties are written to the application manifest.

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.ManifestUtilities
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property UseApplicationTrust As Boolean
public bool UseApplicationTrust { get; set; }
public:
property bool UseApplicationTrust {
    bool get ();
    void set (bool value);
}
member UseApplicationTrust : bool with get, set
function get UseApplicationTrust () : boolean 
function set UseApplicationTrust (value : boolean)

Property Value

Type: System.Boolean
A Boolean value that indicates whether the Publisher, Product, and SupportUrl properties are written to the application manifest. If the value is True, they are written to the application manifest. If the value is False, these properties are ignored.

Remarks

By default, the Product, Publisher, and SupportUrl properties are set to null. They are used only if UseApplicationTrust is True. If this property is True, the values of these properties are written to the corresponding tags in the application manifest.

If UseApplicationTrust is False (the default value), these properties are ignored.

This property corresponds to the UseApplicationTrust property in the project file.

.NET Framework Security

See Also

Reference

ApplicationManifest Class

Microsoft.Build.Tasks.Deployment.ManifestUtilities Namespace