Solved

C# and Vb.net in same project is possible

Posted on 2015-02-03
3
154 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 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