Solved

C# and Vb.net in same project is possible

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 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

21 Experts available now in Live!

Get 1:1 Help Now