Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# windows forms jump start, solution build error
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00807710
Message ID:
00811896
Views:
15
Neil,

>Vs.net is reporting multiple errors when I attempt a first-time build of the example in “Jump Start Windows Forms Application - C#”.
>A typical error is:
>C:\MM .NET Jump Start\Order System CSharp\SecuritySetupForm.cs(25): The type or namespace name 'User' could not be found (are you missing a using directive or an assembly reference?)

I was teaching last week and a developer encountered this same error, so I was able to see what he was doing wrong. Here's the skinny:

When you build your Solution, the business object project is built first, then the Windows Forms project is built afterwards. If there are errors in the business object project, then the Windows Forms project also errors out. To figure out what's gone awry in the business object project, build it by itself as follows:

1. In the Solution Explorer, right-click the business object project
2. In the shortcut menu, select Build

Now you can clearly see only the business object project errors, fix these, and continue!

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform