Microsoft Develop Environment Message

  • Thread starter Thread starter Glenn
  • Start date Start date
G

Glenn

Hello:
Does anyone know what it means when the following message is issued when
adding a new Project to an existing solution.
The library added is a VB .Net SmartApplication. The solution contains a C#
..Net SmartApplication and numerous class
in VB .NET.

"Project "SmarDeviceApplication3" could not be opened because the Microsoft
Visual Basic .Net compiler could not be created. All
projects in a Visual Basic solution must target the same platform, but the
project you are trying to add targets a platform other that the one
specified by your solution."

Environment is .Net 2003 Frameworks 1.1.
Thanks Everyone
Glenn
 
As far as I can remember you cannot have VB.NET and C# project in the same
solution (but you can reference C# libraries - just not C# projects)
 
I remember having a mixture of (language) projects coexist in the same
solution... I have come across the VB compiler error before and would also
like to know what causes it.. Rebooting resolved the issue for me...

Cheers
Daniel
 
I don't think this is connected with the code language (vb, c# etc). It
refers to the platform you are targetting - PocketPC, Windows etc. All the
projects in your solution must target the same platform.

THT

Stuart Eastland
 
That's correct Stuart. You can have C#/VB projects in the same solution and
C# projects can even target different platforms but VB projects cannot. So,
for example, if you are creating a Web service and a test application, you
can do it in C# in the same solution but VB projects have to be separated.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top