Export (0) Print
Expand All

GenerateApplicationManifest Class

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

Implements the GenerateApplicationManifest task. Use the GenerateApplicationManifest element in the project file to create and execute this task. For usage and parameter information, see GenerateApplicationManifest Task.

System::Object
  Microsoft.Build.Utilities::Task
    Microsoft.Build.Tasks::GenerateManifestBase
      Microsoft.Build.Tasks::GenerateApplicationManifest

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)

public ref class GenerateApplicationManifest sealed : public GenerateManifestBase

The GenerateApplicationManifest type exposes the following members.

  NameDescription
Public methodGenerateApplicationManifestInfrastructure. Initializes a new instance of the GenerateApplicationManifest class.
Top

  NameDescription
Public propertyAssemblyNameInfrastructure. Gets or sets the name of the assembly. (Inherited from GenerateManifestBase.)
Public propertyAssemblyVersionInfrastructure. Gets or sets the assembly version. (Inherited from GenerateManifestBase.)
Public propertyBuildEngineGets or sets the instance of the IBuildEngine object used by the task. (Inherited from Task.)
Public propertyBuildEngine2Gets the instance of the IBuildEngine2 object used by the task. (Inherited from Task.)
Public propertyBuildEngine3Gets the instance of the IBuildEngine3 object used by the task. (Inherited from Task.)
Public propertyBuildEngine4Gets the instance of the IBuildEngine4 object used by the task. (Inherited from Task.)
Public propertyClrVersionInfrastructure. Gets or sets the minimum version of the Common Language Runtime (CLR) required by the application.
Public propertyConfigFileInfrastructure. Gets or sets the task item that contains the application configuration file.
Public propertyDependenciesInfrastructure. Gets or sets an item list that defines the set of dependent assemblies for the generated manifest.
Public propertyDescriptionInfrastructure. Gets or sets the manifest description text. (Inherited from GenerateManifestBase.)
Public propertyEntryPointInfrastructure. Gets or sets the managed assembly or ClickOnce manifest reference that is the entry point to the manifest. (Inherited from GenerateManifestBase.)
Public propertyErrorReportUrlInfrastructure. Gets or sets the URL of the Web page that is displayed in dialog boxes during ClickOnce installations.
Public propertyFileAssociationsInfrastructure. Gets or sets a list of one or more file type that are associated with the ClickOnce deployment manifest. File associations only valid only when .NET Framework 3.5 or later is targeted.
Public propertyFilesInfrastructure. Gets or sets the full paths of files to include in the manifest.
Public propertyHostInBrowserInfrastructure. Gets or sets whether the application is hosted in a browser (as are WPF Web Browser Applications).
Public propertyHostObjectGets or sets the host object associated with the task. (Inherited from Task.)
Public propertyIconFileInfrastructure. Gets or sets the application's icon file.
Public propertyInputManifestInfrastructure. Gets or sets the input manifest. (Inherited from GenerateManifestBase.)
Public propertyIsolatedComReferencesInfrastructure. Gets or sets COM components to isolate in the generated manifest.
Public propertyLogGets an instance of a TaskLoggingHelper class containing task logging methods. (Inherited from Task.)
Public propertyManifestTypeInfrastructure. Gets or sets the type of manifest to generate.
Public propertyMaxTargetPathInfrastructure. Gets or sets the maximum manifest file name length. (Inherited from GenerateManifestBase.)
Public propertyOSVersionInfrastructure. Gets or sets the operating system (OS) version that is the minimum required by the application.
Public propertyOutputManifestInfrastructure. Gets or sets the generated manifest. (Inherited from GenerateManifestBase.)
Public propertyPlatformInfrastructure. Gets or sets the manifest platform. (Inherited from GenerateManifestBase.)
Public propertyProductInfrastructure. Specifies the ProductName property in the project file.
Public propertyPublisherInfrastructure. Specifies the PublisherName property in the project file.
Public propertyRequiresMinimumFramework35SP1Gets or sets whether the application requires the .NET Framework 3.5 SP1.
Public propertySuiteNameInfrastructure. Gets or sets the name of the folder on the Start menu where the application is located after ClickOnce deployment.
Public propertySupportUrlInfrastructure. Specifies the SupportUrl property in the project file.
Public propertyTargetCultureInfrastructure. Gets or sets the manifest target culture code. (Inherited from GenerateManifestBase.)
Public propertyTargetFrameworkMonikerGets or sets the target framework moniker. (Inherited from GenerateManifestBase.)
Public propertyTargetFrameworkProfileGets or sets the target framework profile.
Public propertyTargetFrameworkSubsetGets or sets the name of the .NET Framework subset to target.
Public propertyTargetFrameworkVersionInfrastructure. The target .NET Framework version for the project. (Inherited from GenerateManifestBase.)
Public propertyTrustInfoFileInfrastructure. Gets or sets an XML document that specifies the application security.
Public propertyUseApplicationTrustInfrastructure. Specifies whether the Product, Publisher, and SupportUrl properties are written to the application manifest.
Top

  NameDescription
Protected methodAddAssemblyFromItemInfrastructure. Adds an assembly reference to the manifest, based on the specified item. (Inherited from GenerateManifestBase.)
Protected methodAddAssemblyNameFromItemInfrastructure. Adds an assembly reference to the manifest, based on the specified item and the assembly reference type. (Inherited from GenerateManifestBase.)
Protected methodAddEntryPointFromItemInfrastructure. Adds an entry point reference to the manifest, based on the specified item and the assembly reference type. (Inherited from GenerateManifestBase.)
Protected methodAddFileFromItemInfrastructure. Adds a file reference to the manifest, based on the specified item. (Inherited from GenerateManifestBase.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExecuteInfrastructure. Executes the GenerateManifestBase task. (Inherited from GenerateManifestBase.)
Protected methodFindFileFromItemInfrastructure. Returns the manifest file reference that matches the specified item. (Inherited from GenerateManifestBase.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodValidateInputsInfrastructure. Validates the inputs of the GenerateManifestBase task. (Inherited from GenerateManifestBase.)
Protected methodValidateOutputInfrastructure. Validates the generated manifest. (Inherited from GenerateManifestBase.)
Top

EntryPoint is an optional ITaskItem[] parameter that indicates the entry point for the generated manifest assembly. For a ClickOnce deployment manifest, this input specifies the ClickOnce application manifest.

In Visual Studio 2005, the GenerateApplicationManifest Task requires an EntryPoint when an application manifest is generated. (Assembly or native manifests do not require an EntryPoint.) This requirement is enforced by the build error "MSB3185: EntryPoint not specified for manifest."

In Visual Studio 2008, MSBuild does not issue this error when the EntryPoint task parameter is not specified. Instead, the <customHostSpecified> tag is inserted as a child of the <entryPoint> tag, for example, as follows.

<entryPoint xmlns="urn:schemas- 
  microsoft-com:asm.v2">
    <co.v1:customHostSpecified />
</entryPoint>

You can add DLL dependencies to the application manifest by using the following steps:

  1. Resolve the references in the assembly by using a call to ResolveAssemblyReference.

  2. Pass the output of the previous task and the assembly itself to ResolveManifestFiles.

  3. Pass the dependencies by using the Dependencies parameter to GenerateApplicationManifest.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft