Skip to content

Commit

Permalink
Update versioning.getting-started.md (#18000)
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219 committed May 19, 2021
1 parent 5554e3f commit 3738723
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions docs/examples/versioning.getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,6 @@

Vcpkg lets you take control of which version of packages to install in your projects using manifests.

## Enabling versions

To start using [versioning](../users/versioning.md), first you need to enable the `versions` feature flag in any of the following manners:

* Setting the `VCPKG_FEATURE_FLAGS` environment variable

```PowerShell
# Example for PowerShell
$env:VCPKG_FEATURE_FLAGS="versions"
```
```bash
# Example for bash
export VCPKG_FEATURE_FLAGS=versions
```
```cmd
REM Example for cmd
SET VCPKG_FEATURE_FLAGS=versions
```

* Passing the feature flags in the vcpkg command line
```bash
./vcpkg install --feature-flags=versions
```

* Setting `VCPKG_FEATURE_FLAGS` before your `project()` CMake directive
```cmake
set(VCPKG_FEATURE_FLAGS versions)
project(myapp)
```
* Setting `VcpkgAdditionalInstallOptions` (Project Properties -> Vcpkg -> Additional Options) in your MSBuild project
```xml
<PropertyGroup>
<VcpkgAdditionalInstallOptions>--feature-flags=versions</VcpkgAdditionalInstallOptions>
</PropertyGroup>
```

## Using versions with manifests

With the `versions` feature flag enabled you can start adding version constraints to your dependencies.
Expand Down

0 comments on commit 3738723

Please sign in to comment.