Namespace Installation

0

I have a test project that came without Namespace System.Web.Helpers and others. I searched and did not find it. It should be, but it is not. How to install the face? Well, I can hunt on the internet and add, but as I find it to be a basic namespace, I wonder if there's how to install it to be available for all my projects. I'm not talking about installing a reference, this is not the problem, but yes, install Assembly and it becomes available to everyone. Is it just to find the DLL on the internet and install? The Framework is 4.0.

    
asked by anonymous 13.07.2015 / 22:51

2 answers

2

This Namespace can be installed using NuGet in mode visual or by using console . For more information on this package visit site .

To open the console you can use ALT + T N O ( ALT + T then N then O ) in visual studio and enter the following command:

PM> Install-Package microsoft-web-helpers
    
13.07.2015 / 23:46
0

In fact, what is missing in your project is a reference to some library (dll). The namespace is just an organization structure and is available if the dll that makes it available is referenced in the project.

To do so, simply call add the reference to your project and it will become available.

If the dll is from a third party (not another project of your own or Microsoft's own - part of the framework) you need to keep it together with the application and sometimes perform some installation procedures in the environment where it will run. >

If it's just a framework reference, just add it to your project and everything will be fine. Be careful when working with external references, incorrect versions or builds for different architectures can cause problems in your application with certain ease.

In this link you can see how to add a reference in Visual Studio: link

In the very place where you find the reference, just search the home "helpers"

    
13.07.2015 / 22:59