Solved

C# and Vb.net in same project is possible

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

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

best regards
0
Comment
Question by:rflorencio
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 62

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now