开发者

Adding projects to a project in Visual Studio 2010

开发者 https://www.devze.com 2023-03-10 04:31 出处:网络
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'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

Adding projects to a project in Visual Studio 2010


(source: ranorex.com)

and then reference that project from your own project

Adding projects to a project in Visual Studio 2010


(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.

0

精彩评论

暂无评论...
验证码 换一张
取 消