NuGet命令的用法


NuGet命令的用法:


Install-Package 安装包   -Version 4.3.1 参数指定版本


Uninstall-Package 卸载包


Update-Package 更新包


Get-Package 默认列出本地已经安装了的包 可以加参数 -remote -filter entityframework 来在包源中查找自己想要的包


 Install-Package Autofac -Version 3.1.5




如:


PM> Install-Package Newtonsoft.Json
正在安装“Newtonsoft.Json 8.0.3”。
已成功安装“Newtonsoft.Json 8.0.3”。
正在将“Newtonsoft.Json 8.0.3”添加到 ARuntimeApp。
已成功将“Newtonsoft.Json 8.0.3”添加到 ARuntimeApp。




PM> Install-Package Esri.ArcGISRuntime
正在安装“Esri.ArcGISRuntime 10.2.7.1234”。
您正在从 Esri Inc. 下载 Esri.ArcGISRuntime,有关此程序包的许可协议在 http://links.esri.com/dotnetsdklicense 上提供。请检查此程序包是否有其他依赖项,这些依赖项可能带有各自的许可协议。您若使用程序包及依赖项,即构成您接受其许可协议。如果您不接受这些许可协议,请从您的设备中删除相关组件。
已成功安装“Esri.ArcGISRuntime 10.2.7.1234”。
正在将“Esri.ArcGISRuntime 10.2.7.1234”添加到 ARuntimeApp。
已成功将“Esri.ArcGISRuntime 10.2.7.1234”添加到 ARuntimeApp。


PM> Install-Package EntityFramework
正在安装“EntityFramework 6.1.3”。
您正在从 Microsoft 下载 EntityFramework,有关此程序包的许可协议在 http://go.microsoft.com/fwlink/?LinkID=320539 上提供。请检查此程序包是否有其他依赖项,这些依赖项可能带有各自的许可协议。您若使用程序包及依赖项,即构成您接受其许可协议。如果您不接受这些许可协议,请从您的设备中删除相关组件。
已成功安装“EntityFramework 6.1.3”。
正在将“EntityFramework 6.1.3”添加到 ARuntimeApp。
已成功将“EntityFramework 6.1.3”添加到 ARuntimeApp。


Type 'get-help EntityFramework' to see all available Entity Framework commands.


PM> 


PM> Get-Package 


Id                             Version              Description/Release Notes                                        
--                             -------              -------------------------                                        
EntityFramework                6.1.3                Entity Framework is Microsoft's recommended data access techno...
Esri.ArcGISRuntime             10.2.7.1234          Get the SDK that lets you integrate ArcGIS functionality into ...
Newtonsoft.Json                8.0.3                Json.NET is a popular high-performance JSON framework for .NET   




PM>Get-Package -remote -filter jQuery


Id                             Version              Description/Release Notes                                                                   
--                             -------              -------------------------                                                                   
AMF                            1.0.0.0              ASP.NET Mobile Framework (AMF) is a framework for making web application for most-used ta...
Griffin.Table.Mvc3             1.0.3                ASP.NET MVC3 integration package for the jQuery table plugin Griffin.Table.                 
Griffin.Table                  1.0.5                A well-documented table plugin for jQuery which uses Ajax/JSON to fetch items. ...          
jQMMetroTheme                  1.0.3                Provides Metro user interface for web pages using jQuery Mobile on Windows Phone 7.5.       
jQMMetroCordovaTheme           1.0.5                Provides Metro user interface for Cordova apps using jQuery Mobile on Windows Phone 7.5.    
jQMThemeForWindowsPhone        1.0.5                This jQuery Mobile theme allows developers to apply a Metro style look and feel to Window...
Infragistics_NA_jQuery_12.1-it 12.1                 NetAdvantage for jQuery 12.1 Italian localization                                           
jquery.tablesorter             1.0.3                This is jquery table sorter library. You can find details at http://tablesorter.com/docs/   
jquery.httpclient              1.0.1                A simple jQuery HttpClient.                                                                 
JQueryListBinding              1.0.4                The template to bind JSON data to View from Controller in MVC Application.                  
jQuery.Uniform                 2.1.1                Sexy form elements with jQuery. Now with HTML5 attributes! Make your form controls look h....




PM> Install-Package jQuery -Version 1.12.3
正在安装“jQuery 1.12.3”。
已成功安装“jQuery 1.12.3”。
正在将“jQuery 1.12.3”添加到 ARuntimeApp。
已成功将“jQuery 1.12.3”添加到 ARuntimeApp。


PM> 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值