ASP. net mvc 3 new features and NuPack functions (1)

Source: Internet
Author: User
Tags configuration settings

NuPack-. NET open source Package Manager

NuPack is an open-source software package manager that allows you to easily find, install, and use the. NET Library in your project. It works well with all. NET project types (including, without any restrictions, ASP. NET Web Forms and ASP. net mvc ).

NuPack enables developers who maintain open-source projects (such as Moq, NHibernate, Ninject, StructureMap, NUnit, Windsor, RhinoMocks, Elmah, and so on) to package their libraries, and use an online, searchable gallery/catery to register them. Client NuPack tools-highly integrated with Visual Studio-allows any. NET developer to easily use these class libraries in their projects and install them.

NuPack processes dependency management between libraries (for example, library1 depends on library2 ). it also allows you to easily modify (and remove) the Library in subsequent projects. it supports updating web. config File (if a package requires configuration settings ). similarly, it allows packages to add PowerShell scripts to a project (for example, scaffold commands ). most importantly, NuPack is transparent-and nothing is installed on the system layer. instead, it is committed to making it easier for you to use your projects to manage your libraries.

NuPack itself is an Open-Source project. The Outercurve Foundation (formerly CodePlex Foundation) today announced the acceptance of The NuPack project to the ASP. NET Open Source Gallery.

Our goal is to make NuPack integrate open-source libraries as simple as possible in the. NET project. It supports all versions of Visual Studio. Today, you can start using its first development version.

A simple NuPack scenario-using ELMAH

As a simple example, it shows what NuPack can do. Let's assume that we are working on a brand new ASP. NET application development, and want to use the popular "ELMAH" library to record and report errors on our website. To install ELMAH, You need to manually download it, decompress it, add references to your project, make sure you have the source code control bound to the correct installation library, and update the web of your application. the config file, including the ELMAH HttpModule record. All are feasible-but a little boring.

After NuPack is installed, you can simply open the new "Package Manager Console" and enter "Add-Package elmah" in it ".

Type "Add-Package elmah", causing NuPack to check the online location of the Elmah database, download it, and Add its reference to your project, and automatically add the appropriate Elmah registration entries in your application's web. in the config file:

Now we have set, installed Elmah for our project, and enabled Error Reporting records. No additional manual steps are required to make it work.

Learning and understanding

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.