且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我可以为Windows桌面应用程序创建/使用Api吗?

更新时间:2023-11-10 14:33:34

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



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

[ ^ ]



您提供的信息非常少,因此如果不了解您的项目,我无法提供更多帮助。这个答案是对你需要帮助的猜测。
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[^])