> For the complete documentation index, see [llms.txt](https://pubrelease.onepub.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pubrelease.onepub.dev/version-file.md).

# Version File

When creating a release, pub\_release will create or update a dart file containing the package version no.

The version file is called:

```
lib/src/version/version.g.dart
```

The contents of the version file will be:

```dart
/// GENERATED BY pub_release do not modify.
/// pub_release version
String packageVersion = '3.0.0';

```

Where the packageVersion is set to the value in your pubspec.yaml.

The packageVersion variable provides a convenient method if you need to display the version no. of your package.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pubrelease.onepub.dev/version-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
