ASP.NET MVC 3.0学习系列文章—NuGet and ASP.NET MVC 3.0


1.Introduction

  NuGet is a Visual Studio 2010 extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects that use the .NET Framework. This topic lists documentation that will help you use NuGet packages and create your own.

  NuGet是一个开源的项目,项目的发起人是微软的几个人员。如果你关注NuGet建议关注这两个人:

  a.David Ebbo  http://blog.davidebbo.com/ Twitter: @davidebbo

  b. Phil Haack http://haacked.com/

  2.Why NuGet

  NuGet的使用可以缩短我们下载和添加dll的时间。不适用nuget的时候,我们添加一个dll需要先下载,解压,添加引用等等。而使用nuGet只需要一步操作。

  可以看出来,使用NuGet后,dll的配置可以自动添加,而且当有新的版本出现时可以自动更新dll。

  使用NuGet另外一个优点是,你添加一个dll后,它会自动把相关联的dll给添加到引用中来。

  3.安装NuGet

  你可以去codeplex上下载NuGet,或者使用VS2010的Extension Manager来安装NuGet:

  关于NuGet的使用,我这里就给大家说明下如何使用帮助命令:

  4.NuGet的打包和Feed:

  1. 如何打包一个NuGet包: http://nuget.codeplex.com/wikipage?title=Creating%20a%20Package

  2.Hosting Your Own Local and Remote NuGet Feeds

  http://haacked.com/archive/2010/10/21/hosting-your-own-local-and-remote-nupack-feeds.aspx

  5.NuGet.org

只需要注册一个账号就可以上传Package了。 如果你需要和别人分享一个模块或者项目,可以试试使用nuget来分享。


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3