Solved

C# and Vb.net in same project is possible

Posted on 2015-02-03
3
203 Views
Last Modified: 2015-02-03
Hi,

Is possible join c# and vb.net in same project?

best regards
0
Comment
Question by:rflorencio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 32

Assisted Solution

by:Daniel Wilson
Daniel Wilson earned 100 total points
ID: 40586361
Not in the same project, but in the same solution.

So you could have a VB project and a C# project, one referencing the other.  

That's not too unusual ... if a UI team uses VB and a backend team uses C#, for example.  Or if you've started in one language but want to include a library you found on the 'net without translating it.
0
 
LVL 63

Assisted Solution

by:Fernando Soto
Fernando Soto earned 100 total points
ID: 40586428
Hi  rflorencio;

As Daniel Wilson stated, "Not in the same project, but in the same solution.", the reason for this is that each project will use one compiler to compile the project. When the solution is compiled it will create a .Net IL, intermediate Language compilation which  is the same amongst the .Net languages. These IL compilation will be used by the JIT, Just In Time, compiler when the code is run.
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 300 total points
ID: 40586494
Errrr....   Depends on what kind of project you are referring to. An ASP.NET web site project can have files from both languages in its App_Code folder. See:  Multiple Programming Languages in the App_Code Folder.

It may be possible to modify your build process to have both in the same project (i.e. something other than a web site project), but I don't know that the "juice is worth the squeeze."
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question