> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetPackageVersionFromManifest

> GetPackageVersionFromManifest

Returns the version of the package for the specified application manifest.

## Syntax

```cpp theme={null}
HRESULT GetPackageVersionFromManifest(
         PCWSTR manifestPath,
         UINT64* packageVersion
)
```

### Parameters

*manifestPath*   \_In\_\
Type: PCWSTR

The path to the manifest.

*packageVersion*   \_Out\_\
Type: UINT64\*

On return, contains the version of the package.

### Return value

Type: HRESULT

Returns `S_OK` if successful. Otherwise, returns an error code. For a list of error codes, see [Error Codes](https://docs.xbox.com/reference/errorcodes.md).

## Remarks

To determine whether the manifest is a Microsoft Game Development Kit (GDK) manifest, call [GetIsGameCorePartition](https://docs.xbox.com/reference/tools/packagingservices/functions/getisgamecorepartition.md).

To parse the manifest and validate the schema, call [ValidateSchemaForManifest](https://docs.xbox.com/reference/tools/packagingservices/functions/validateschemaformanifest.md).

For more information about packaging, see [Overview of packaging](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging.md).

## Requirements

**Header:** packagingservices.h

**Library:** packagingservices.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

[PackagingServices](https://docs.xbox.com/reference/tools/packagingservices/packagingservices_members.md)


## Related topics

- [PackagingServices (API contents)](https://docs.xbox.com/reference/tools/packagingservices/packagingservices_members.md)
- [GetPackageFamilyNameFromManifest](https://docs.xbox.com/reference/tools/packagingservices/functions/getpackagefamilynamefrommanifest.md)
- [GetPackageFullNameFromManifest](https://docs.xbox.com/reference/tools/packagingservices/functions/getpackagefullnamefrommanifest.md)
- [Publisher Content packages](https://docs.xbox.com/build/core-features/common/packaging/packaging-publisher-content.md)
- [MicrosoftGame.config overview](https://docs.xbox.com/build/core-features/common/game-config/MicrosoftGameConfig-Overview.md)
