简体   繁体   中英

Adding projects to a project in Visual Studio 2010

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM