Last post Feb 08, 2013 01:16 PM by ojm37
Feb 08, 2013 12:13 PM|ojm37|LINK
I have a solution that has a VB class library in it. I wondered if I could put a C-Sharp class in it, so I tried. Everything compiles and runs! However, I do not have Intellisense in the cs file and I cannot create an object of the C-Sharp class in the
VB code (says class is not defined).
Any way around this in the VS2012 GUI? I know I can create different projects to contain the different class libraries, but I'd really like to have my legacy VB and new CS in the same directory and project (talk me out of it?)...
Feb 08, 2013 01:16 PM|ojm37|LINK
Doh! The CS file is NOT being compiled into the VB Library! When I added it, the Solution Explorer marked it with the nice, green C# logo so I thought it recognized it (it even did C# syntax checking while I was typing in the code) and did not try to compile
it. SO, looks like VB and CS cannot be combined into a single project in VS2012 as well. Thought that was in the specs for VS2012, but I guess not.