-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a bit of docs - references #105
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
# Convert your solution from NuGet | ||
|
||
## Manual process | ||
|
||
If you are already using `NuGet.exe` for package restore then it should be easy to convert to Paket. | ||
|
||
1. Analyse your `packages.config` files and extract the referenced packages into a [paket.dependencies](dependencies_file.html) file. | ||
2. Convert every `packages.config` file to [paket.references](references_files.html) syntax. This is very easy - you just have to remove all the XML and keep the package names. | ||
3. Run [paket install](paket_install.html) with the `--hard` flag. This will analyze the dependencies, generate a [paket.lock](lock_file.html) file and remove all the old package references from your project files and install new references in Paket's syntax. | ||
3. Run [paket install](paket_install.html) with the `--hard` flag. This will analyze the dependencies, generate a [paket.lock](lock_file.html) file and remove all the old package references from your project files and install new references in Paket's syntax. | ||
|
||
<div id="automatic"></div> | ||
## Automatic process | ||
|
||
Paket can assist you with the conversion. The `convert-from-nuget` command finds all `packages.config` files and based on them generates a [paket.dependencies](dependencies_file.html) file and converts them to [paket.references](references_files.html). | ||
If the `packages.config` is solution-level, then its dependencies will be written to [paket.dependencies](dependencies_file.html) and it will be removed. | ||
Afterwards it will run the [paket install](paket_install.html) process with the `--hard` flag. This will analyze the dependencies, generate a [paket.lock](lock_file.html) file and remove all the old package references from your project files and install new references in Paket's syntax. | ||
|
||
[lang=batchfile] | ||
$ paket convert-from-nuget [--dependencies-file=FILE] | ||
|
||
Options: | ||
|
||
`--dependencies-file`: Use the specified file instead of [`paket.dependencies`](dependencies_file.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters