Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.net 2.0 window form project in C# express gives errors

Status
Not open for further replies.

MilesAhed

Programmer
Jul 16, 2008
14
US
I just installed the VS2008 C# express with SP1 hoping it would help. Same problem as C# express without the SP1. If I do new project and select a Windows Form Application, the IDE targets .NET 3.5. If I go into the properties and change it to target either 2.0 or 3.0 I get 4 warnings about linq not being in system. When I compile I get 2 errors about references to linq not being ... yadda yadda.

There's no dropdown to select anything other than a 3.5 target initially that I can find. It's frustrating when you can't even get started with a single button Hello World!!

It can't really be this broken can it? There's gotta' be some Easter Egg to fix it right? I'm just trying to throw together some demo code. Not everyone has .NET 3.5.

Sheesh!!

Which dialog box haven't I found? :)
 
remove the references to linq.
1. solution explorer > project > references : remove System.Linq
2. with any prexisting c# files delete the line
using System.Linq;

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Thanks Jason. Got to delete if from both Form1.cs and Program.cs. Too flustered to think of that before. :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top