views:

41

answers:

1

Hi,

I am trying to merge my vb.net Web application project with my c# mvc project not ideal at all but the project is too big to do it any other way.

any ideas would be much appreciated!

Thanks

Ash :D

A: 

With Visual Studio (or any other IDE I'm aware of that can target .net), you can not mix multiple languages in the same project. For an asp.net project that does on-demand compilation, you can not mix multiple languages in most cases.

If you want to edit via text editor or work around this, you can compile to .netmodules (using compiler switches - for csc.exe, it's /t:module), then link them together. This is a bit cumbersome, so most people do not do it.

Otherwise, you can convert one language into another - for example, convert the vb.net to c# - and manually put the types into one project. There are a few language converters out there, but all of them that I've tried have a few faults with complex constructs. I've had good luck loading a project into SharpDevelop, and using it's built-in conversion tool to get me 95% of the way there.

Philip Rieck
Cheers Philip this was great advice!
ashga