locked
Combining C sharp and VB projects RRS feed

  • Question

  • Hi guys,

    I want to know if it is normal to combine C-sharp project with a VB project, will not there have some problems ?

    Thank you in advance.

    Friday, June 29, 2012 7:54 PM

Answers

  • Hi,

    if you have a mixed team (some C# and some VB developers) it's normal to write some projects in VB and others in C#. Because of .NET this isn't a problem. What you can't do is to mix these languages in one single project.


    Best Regards. When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. This helps us build a healthy and positive community.

    • Proposed as answer by RohitArora Monday, July 2, 2012 8:14 AM
    • Marked as answer by Houssem Dellai Monday, July 2, 2012 9:22 AM
    Friday, June 29, 2012 8:34 PM
  • To insure maximum compatibility, I would create the Main exe using VB. Then any class libraries (dll) in C# should work fine when referenced from the main process. Each referenced class library must be in a separate project, but they can be in the same solution.

    Because of some legacy support for VB.NET there might be some language features that are incompatible with C#.


    Dan Randolph - My Code Samples List

    Saturday, June 30, 2012 11:27 PM

All replies

  • Hi,

    if you have a mixed team (some C# and some VB developers) it's normal to write some projects in VB and others in C#. Because of .NET this isn't a problem. What you can't do is to mix these languages in one single project.


    Best Regards. When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. This helps us build a healthy and positive community.

    • Proposed as answer by RohitArora Monday, July 2, 2012 8:14 AM
    • Marked as answer by Houssem Dellai Monday, July 2, 2012 9:22 AM
    Friday, June 29, 2012 8:34 PM
  • To insure maximum compatibility, I would create the Main exe using VB. Then any class libraries (dll) in C# should work fine when referenced from the main process. Each referenced class library must be in a separate project, but they can be in the same solution.

    Because of some legacy support for VB.NET there might be some language features that are incompatible with C#.


    Dan Randolph - My Code Samples List

    Saturday, June 30, 2012 11:27 PM