<commit_before>## Adding to a single project

It's also possible to add a package to a specified project only:

    [lang=batchfile]
    $ paket add nuget PACKAGENAME [version VERSION] [project PROJECT] [--force]

See also [paket remove](paket-remove.html).

## Sample

Consider the following paket.dependencies file:

    [lang=paket]
    source https://nuget.org/api/v2

    nuget FAKE

Now we run `paket add nuget xunit --interactive` to install the package:

![alt text](img/interactive-add.png "Interactive paket add")

This will add the package to the selected paket.references files and also to the paket.dependencies file:

    [lang=paket]
    source https://nuget.org/api/v2

    nuget FAKE<commit_msg>Clarify that package is not added to projects by default<commit_after>## Adding to a project

By default a package is only added to the solution, but not on any of its projects. It's possible to add the package to a specified project at the same:

    [lang=batchfile]
    $ paket add nuget PACKAGENAME [version VERSION] [project PROJECT] [--force]

See also [paket remove](paket-remove.html).

## Sample

Consider the following paket.dependencies file:

    [lang=paket]
    source https://nuget.org/api/v2

    nuget FAKE

Now we run `paket add nuget xunit --interactive` to install the package:

![alt text](img/interactive-add.png "Interactive paket add")

This will add the package to the selected paket.references files and also to the paket.dependencies file:

    [lang=paket]
    source https://nuget.org/api/v2

    nuget FAKE
{'fraction_non_alphanumeric': 0.08656330749354005, 'fraction_numerical': 0.002583979328165375, 'mean_word_length': 3.7515337423312882, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7529810', 'n_tokens_mistral': 513, 'n_tokens_neox': 492, 'n_words': 187}