You need to install the link to the DLL containing the code library that you want to use. Presumably this part of the SDK, so yes, you should download it. Then in visual studio
- open solution explorer
- open the project in which you want to use the library
- right click node links for this project
- select "add link"
- select and select dll
After you have successfully added the link, VS should recognize the using directive (and any types that you used from the assembly).
Note that assembly references are running; assemblies do not match namespaces. Beginners often confuse the two. Types that are defined in different assemblies can be in the same namespace; BCL has dozens of examples of this.
In addition, the using directive cannot load anything or anything like that; it just allows you to specify types without fully qualified names. In fact, you can write code in C # without using the using directive. For example, the following code files are equivalent:
using System.Collections.Generic; public static class Collector { public static ICollection<T> Collect(IEnumerable<T> enumerable) { return new List<T>(enumerable); } }
and
public static class Collector { public static System.Collections.Generic.ICollection<T> Collect(System.Collections.Generic.IEnumerable<T> enumerable) { return new System.Collections.Generic.List<T>(enumerable); } }
phoog source share