一个项目中的C#和VB [英] C # and VB in one project

查看:190
本文介绍了一个项目中的C#和VB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...

是否可以在同一项目中使用C#和VB,如果可以,我该如何使用.请帮忙...

Nidhin

Hi...

Is it possible to use C# and VB in same project, if yes how can i use that. Please help...

Nidhin

推荐答案

您可以-用于某些任务.在这里查看一下 [
You can - for some kind of tasks. Have a look here[^].

As is mentioned on that link - "Why would you want to, though"?


不可能...

但是
在一个 solution
中 您可以采用其他受支持的语言进行 项目

祝您编码愉快!
:)
not possible...

But
in one solution
you can take projects in different supported languages

Happy Coding!
:)


您可以在同一解决方案中同时使用C#和VB,但是如果尝试将它们放在同一项目文件中,则可能会遇到麻烦.
在上一份工作中,我之前已经完成了此工作,但是您必须提防特定的依赖关系,这可能导致应用程序非常依赖于另一个应用程序.

因此,如上所见,建议不要对其进行推荐.

如果您在尝试以C#为首的VB部分时遇到麻烦,则必须将.exe添加到C#bin/debug文件夹中,以便它可以正常工作.

希望有帮助.
You can have both C# and VB in the same solution, however you may have complications if you try to make them in the same project file.

I have worked through this before in a previous job but you have to watch out for a cicular dependancy that can cause the application to be very dependant on the other.

So as it is possible it is not recomended as you can see above.

If your having trouble trying to step through the VB portion from the C# being the lead, you have to add the .exe into the C# bin/debug folder so it can work.

Hope that helps.


这篇关于一个项目中的C#和VB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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