Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB.Net and C# Projects in 1 Solution

Is there a way for me to create multiple projects using different languages under 1 solution in VS 2008? If so, how?

like image 229
StackOverflowNewbie Avatar asked Jan 24 '10 15:01

StackOverflowNewbie


2 Answers

Just create them. A solution can happily hold projects of different languages. I have C# and VB.NET projects sitting in the same solution without a problem.

What you can't do is mix languages in the same project.

like image 194
Oded Avatar answered Nov 15 '22 18:11

Oded


As Oded says, you just create them. Do this by right-clicking the Solution node, selecting Add > New Project, selecting the language and project type you want, and giving it a name.

The only times I know of when this doesn't work are:

  1. When your Always show solution option is not checked (under Tools > Options > Projects and Solutions)

  2. When you don't have both languages installed, for example if you installed Visual Basic 2008 Express Edition without Visual C# 2008 Express Edition or vice versa, or if you deselected one of the languages during installation. Note that except for the express edition, each edition contains all languages by default.

If you are having problems I would verify neither of the above problems applies. Just check the Tools > Options setting and check the Installed products list under Help > About Microsoft Visual Studio. If you need to change the Installed products list, just rerun VS.NET setup (or the appropriate Express edition setup).

like image 39
Ray Burns Avatar answered Nov 15 '22 18:11

Ray Burns