如何从命令行使用paket [英] How to use paket from command line

查看:94
本文介绍了如何从命令行使用paket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Nuget Package Manager控制台中从nuget安装了paket,

I installed paket from nuget in Nuget Package Manager Console with:


Install-Package paket

Install-Package paket

然后我尝试运行 paket convert-from-nuget 。它在用户提示符下停滞了(它不允许我在包管理器控制台中键入内容)。我的下一个想法是从命令行运行它,但没有记录如何

I then tried to run paket convert-from-nuget. It stalled out on a user prompt (it wouldn't let me type into the package manager console). My next thought was to run it from command line, but how to do so is not documented.

只需放入将paket convert-from-nuget 转换为标准dev命令提示符会导致错误,提示无法识别 paket。

Just putting paket convert-from-nuget into a standard dev command prompt results in an error saying "paket" is not recognized.

如何从命令行或Powershell运行paket,以及如何指定要使用的解决方案?

How do I run paket from the command line or powershell, and how do you specify which solution to work against?

推荐答案

在存储库中设置paket的方法如下:

The way to setup paket in your repository is as follow:

这是一个轻量级实用程序,可获取并更新 paket.exe ,从官方发布页面中选择稳定版本:

This is a lightweight utility which obtains and updates paket.exe, pick stable release from official release page:

https:/ /github.com/fsprojects/Paket/releases

md .paket



3个在该文件夹中下载的引导程序并调用它



3 put the downloaded bootstrapper in this folder and invoke it

cd .paket
paket.bootstrapper

现在您已经准备好使用最新的 paket.exe 您对依赖性的处理。

now you have an up-to-date paket.exe ready to ease your handling of dependencies.

cd ..
.paket\paket convert-from-nuget

请签出 https://github.com/fsprojects/Paket.VisualStudio 还是Visual Studio插件,可帮助您创作 paket.dependencies paket.references 文件

Please checkout the https://github.com/fsprojects/Paket.VisualStudio also for Visual Studio plugin to help you authoring paket.dependencies and paket.references file

也请加入 https ://gitter.im/fsprojects/Paket (如果有任何疑问)。

Please also join https://gitter.im/fsprojects/Paket if you have any questions.

这篇关于如何从命令行使用paket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆