C# & VB in same project.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • farseer

    #1

    C# & VB in same project.

    Hello,
    with VS2005 BETA, is it possible to use multiple languages in the same
    project? For instance, can i have project with certain classes
    implemented in VB and others with implemented built in C#?

    thanks

  • Marina

    #2
    Re: C# & VB in same project.

    I don't know the answer, but why would you want to? Why not pick one
    language, and just go with that? They are virtually identical in
    functionality.

    And if you do have a situation where you need to use one of them for a
    particular class, but the other for everything else, is it really so
    difficult to just have 2 projects?

    "farseer" <farseer@optonl ine.net> wrote in message
    news:1115666877 .134253.248920@ o13g2000cwo.goo glegroups.com.. .[color=blue]
    > Hello,
    > with VS2005 BETA, is it possible to use multiple languages in the same
    > project? For instance, can i have project with certain classes
    > implemented in VB and others with implemented built in C#?
    >
    > thanks
    >[/color]


    Comment

    • farseer

      #3
      Re: C# &amp; VB in same project.

      Ideally, that would be true...but, we don't always have a choice when
      time is factored in.

      i am aware of my options to solve the problem. However, the easiest
      solution would be if the environment did support multiple languages, as
      advertised(?). That is the question i am hoping someone may be able to
      answer.

      Comment

      • Mattias Sjögren

        #4
        Re: C# &amp; VB in same project.

        [color=blue]
        >with VS2005 BETA, is it possible to use multiple languages in the same
        >project?[/color]

        I'm sure you can write an MSbuild script that invokes both the C# and
        the VB compiler, but I'm not sure how VS would react to it. The VS
        project system is still very much centered around one language per
        project.

        Of course, even if you did this you'd end up with two binaries, just
        like you would with two separate projects.



        Mattias

        --
        Mattias Sjögren [MVP] mattias @ mvps.org
        http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
        Please reply only to the newsgroup.

        Comment

        Working...