vs vb.net Can compile both C# and visual basic on vb.net ?

vmars316 621 Reputation points
2020-09-27T01:03:17.817+00:00

Hello & Thanks ;

I have vs vb.net installed
Can compile both C# and visual basic on vb.net ?
Or do I need to install some C# stuff ?

Thanks for your Help...

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,892 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 85,366 Reputation points
    2020-09-27T06:58:43.343+00:00

    You can compile both C# and VB.NET
    You can see this screencopy of Visual Studio Installer on my version (2019 FR) : Visual-Studio-Installer.jpg

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Andrew Morton 1 Reputation point
    2022-03-15T16:39:46.287+00:00

    You can have more than one project in a solution, and those projects can use different languages, for example C# and VB.NET. You can add a project in the solution as a reference in other projects.

    There is an example of adding two projects to a solution in the Microsoft Learn article Introduction to projects and solutions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.