ASP.NET MVC 3.0學習系列文章—NuGet and ASP.NET MVC 3.0

來源:互聯網
上載者:User

這兩周忙著換工作,也沒時間更新這個系列的文章。。。。。。。 在在部落格園搜了NuGet這個關鍵字,結果只有兩頁,還有幾篇文章是我的,所以我覺得還是介紹下NuGet,以及NuGet.org,好讓一些初學者能夠快速的入門。

ASP.NET MVC 3.0學習系列文章—序

ASP.NET MVC 3.0學習系列文章--Razor and ASP.NET MVC 3.0

ASP.NET MVC 3.0學習系列文章—Controllers in ASP.NET MVC 3.0

ASP.NET MVC 3.0學習系列文章—Model in ASP.NET MVC 3.0

ASP.NET MVC 3.0學習系列文章--Dependency Resolution in 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來分享。。

Nick

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.