In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to use the open source tool Nupack in ASP.NET MVC 2, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Nupack is a packaged .NET toolset developed by the Nupack team to make it easy for developers to integrate third-party tools into your project. Package Management is not a new concept, it has been used in Unixm,Ruby and others before.
But for our developers who are not good at English, it is a bit difficult to see this. I will introduce it in detail from installation to use here.
Like VS2010's Extension Manager Tool very much, you can install NuPack by using it directly, of course we mean that you are using Asp.net MVC 2, if you have installed Asp.net MVC3 Preview, then you don't need to install Nupack again, it has been installed automatically.
If it's Asp.net mvc2, don't worry, you can install it through Extension manager Tool.
Open EMT, select Online Gallery, and search Nupack,: in the search box in the upper right corner
Because I have already installed it here, you can click download to download it and install it. Restart vs2010.
Let me show you how to use Nupack. First create an Asp.net MVC 2 project:
1. How do I open Package Manager Console?
PMC does not appear in VS by default. You need to go to View- > Other windows- > Package Manager Console to select it, and it will appear under VS.
2. How to use the NuPack command
* the command is List-Package:,. If you enter List-Package directly under Package Manager Console, you will see all the current third-party tools in NuPack, as shown below:
If you need to add a third-party tool to your project, just type Add-Package XXX, for example, we need to add 'elmah' to the project, just enter the following in PMC:
If you don't know what elach does, please go to google code to take a look at the introduction of this open source project. It is mainly used to record error messages on your website, which can be sent to you through email,twitter, etc., or saved in the database. The above operation has added this third-party tool to your project, and also modified the web.config file, that is, even the configuration has been automatically changed for you. Very nice.
Now to see if elmah works properly, let's type in a url at random and let the system report an error. I'll enter a shit/shit.
Then visit elmah.axd to see if the error log has been recorded.
Yes, it's been recorded.
Next, let's try adding NHibernate.linq and see if there are any other magical features.
Wow, it will download the relevant tools it needs.
If you want to remove NHibernate.linq, you just need to enter the following command on the console:
PM > Remove-Package NHibernate.Linq-RemoveDependencies
If you don't want to use the Dos command, you can do it directly by adding Package.
After reading the above, do you have any further understanding of how to use the open source tool Nupack in ASP.NET MVC 2? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.