I'm developing an application that uses Managed WiFi. Normally I would just add the .dll 开发者_运维百科to the project, but this library comes as a regular VS project. How do I use it in my program? I tried adding Interop.sc and WlanApi.cs to my project, but WiFi classes are not recognised.
Visual Studio works with solutions and projects. You want to add your Managed WiFi project to your existing solution
(source: ranorex.com)
and then reference that project from your own project
(source: programming4.us)
Just add the ManagedWifi project to your solution and then reference if from your main project (Add reference → Projects tab).
If you do not need to modify the source code of this managed wrapper. Just open the project in a separate Visual Studio and build it, grab the output library and add it to your project.
Add it to your solution by clicking File | Add then select existing project.
Find the .csproj file and select that. This will add it into your Visual Studio solution.
In the project you want to use this new project, right-click References and Add reference. You can then select the new project and it will be usable in your main project now.
精彩评论