|
| C# and VB in the same project. |
 |
Mon, 17 Mar 2008 19:45:47 +000 |
I'm having a problem with a C# Web Application that needs to run VB codebehind
files in the same project. I'm new to using the Web Application project type
however I didn't seem to have any problems doing this in the Web Site project
type. can anybody tell me if there is a way to do this with Web Application's or
if this is a major no no. also any references would be greatly appreciated.
Thanks,
|
| Post Reply
|
| Re: C# and VB in the same project. |
 |
Mon, 17 Mar 2008 19:55:45 +000 |
In this case, that's a no no because with a WAP everything is compiled using the
same compiler and put into a single assembly. .NET does not currently support
compiling different languages into a single assemly. It can be done through
hacks, like using ILMerge, but you can't automate that easily, and is proven to
not be perfect. You're best off sticking to the same language. If it is business
logic you are working with, you can use different assemblies and different
projects.
|
| Post Reply
|
| Re: C# and VB in the same project. |
 |
Mon, 17 Mar 2008 20:03:03 +000 |
Thank you!
|
| Post Reply
|
| Re: C# and VB in the same project. |
 |
Tue, 18 Mar 2008 11:08:51 +000 |
actually another question? is this acceptable in side a Web Site project type?
the only reason I ask is because it allows you to change the language when
adding new files.
thanks,
|
| Post Reply
|
|
|
|
|
|
|
|
|
|