Wrox Programmer Forums
|
Visual Studio 2008 For discussing Visual Studio 2008. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2008 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2011, 06:07 PM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default project stopped compiling.

Hi,
I am work on a windows form application. Everything was working fine until I changes .Net version from project properties page. It was initially 3.5 I set it to 2.0 when I compiled it it was giving errors. So I again set it back to 3.5 but it not compiling now after setting version to 3.5
It's giving a lot of compile time errors and at the end of each error it says:
(are you missing a using directive or an assembly reference?)

Can anyone help me fix this problem ??
 
Old July 14th, 2011, 06:21 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

yes, you just need to add the using needed for every object that thrown that error.
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old July 15th, 2011, 03:03 AM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by gbianchi View Post
yes, you just need to add the using needed for every object that thrown that error.
I am using LinkedList in my code. It's giving error on

Code:
String strValue = lstMyList<String>(i);
I have added:
Code:
using system.collection.generic;
using System.Linq;
and
using System;
I am still getting errors.
What else do i need to add?


In fact even after setting the version back to 3.5 all my references under References node are still pointing to a directory of .Net Version 2.0
I suspect therein lies my problem.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter7_Earthquake stopped unexpectedly allankliu BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 1 December 24th, 2009 09:56 PM
My contact form stopped working..again. Will BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 18 March 21st, 2009 01:47 PM
Chap 2 ToDoList - Stopped Unexpectedly sierawsk BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 1 March 4th, 2009 01:14 PM
Intellisence stopped working beddowsm Visual Studio 2008 3 September 5th, 2008 12:32 PM
IIS stopped responding AviatorTim Classic ASP Basics 7 April 12th, 2004 08:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.