我可以为Windows桌面应用程序创建/使用Api吗? [英] Can I Create/ Use Api For Windows Desktop Application

查看:68
本文介绍了我可以为Windows桌面应用程序创建/使用Api吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在我的项目中使用另一个项目的API ..

我的应用程序是Windows桌面应用程序,所以我可以在这个应用程序中使用API​​吗?

i have to use API of another project in my project..
my application is windows desktop application, so can i use API in this application ?

推荐答案

假设您的其他项目是导出某些方法的.NET程序集,您可以通过引用桌面应用程序中的其他程序集轻松完成此操作。



如何:添加或删除参考文件

[< a href =http://msdn.microsoft.com/en-us/library/wkze6zky.aspxtarget =_ blanktitle =New Window> ^ ]



您提供的信息非常少,因此如果不了解您的项目,我无法提供更多帮助。这个答案是对你需要帮助的猜测。
Assuming your "other" project is a .NET assembly that exports some methods you can easily do this by referencing the other assembly in your desktop application.

How to: Add or Remove References
[^]

You provide very little information, so without more knowledge about your projects I cannnot give much more help. This answer is a guess about what you need help with.


阅读你的评论似乎你想从你的winforms应用程序中使用web api服务。你有一个这样做的例子(从网络客户端调用web api [ ^ ])
Reading your comment it seems you want to consume a web api service from your winforms application. You've got an example of doing it here (calling a web api from a net client[^])


这篇关于我可以为Windows桌面应用程序创建/使用Api吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆