Solved

C# and Vb.net in same project is possible

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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

623 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