Reputation: 14457
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.
Upvotes: 3
Views: 6662
Reputation: 29120
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)
Upvotes: 8
Reputation: 244787
Just add the ManagedWifi project to your solution and then reference if from your main project (Add reference → Projects tab).
Upvotes: 3
Reputation: 3442
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.
Upvotes: 1
Reputation: 35905
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.
Upvotes: 3