Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

csc error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CSharper - 26 Mar 2008 22:10 GMT
When I try to compile a C# application using the command line code I
am getting the following error;

App.xaml.cs(line,column): error cs0246: The type or namespace name
'Application' could not be found

I tried looking for System.* under c:\windows\microsoft.net\framework
\v3.5 and there are no system.* dlls found, on the other hand I can
find them in v2.0

Am I suppose to use command line reference /r and specify all the dlls
required for this project against v2.0 or am I looking at wrong places
for v3.5?

Thanks.
Ben Voigt [C++ MVP] - 26 Mar 2008 23:00 GMT
> When I try to compile a C# application using the command line code I
> am getting the following error;
[quoted text clipped - 9 lines]
> required for this project against v2.0 or am I looking at wrong places
> for v3.5?

.NET 3.x uses the .NET 2.0 dlls plus some more (WCF, WPF, and so on).

> Thanks.
Willy Denoyette [MVP] - 26 Mar 2008 23:31 GMT
> When I try to compile a C# application using the command line code I
> am getting the following error;
[quoted text clipped - 11 lines]
>
> Thanks.

The V3 and V3.5 assemblies are located under  "x:\Program Files\Reference
Assemblies\Microsoft\Framework\v3.0" and "x:\Program Files\Reference
Assemblies\Microsoft\Framework\v3.5" where x is your system drive.

Willy.
CSharper - 26 Mar 2008 23:35 GMT
On Mar 26, 5:31 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:

> > When I try to compile a C# application using the command line code I
> > am getting the following error;
[quoted text clipped - 17 lines]
>
> Willy.

Thank you very much and quick question, so do I need to individually
include the reference or can I do a wild card with /r:c:\program files
\reference assemblies\Microsoft\Framework\v3.5\*.dll

thanks.
Willy Denoyette [MVP] - 26 Mar 2008 23:55 GMT
On Mar 26, 5:31 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> "CSharper" <cshar...@gmx.com> wrote in message
>
[quoted text clipped - 21 lines]
>
> Willy.

Thank you very much and quick question, so do I need to individually
include the reference or can I do a wild card with /r:c:\program files
\reference assemblies\Microsoft\Framework\v3.5\*.dll

thanks.

You need to reference the exact assembly, no wild cards allowed here.
You also need to make sure you are using the right csc.exe (the one from
..\framework\v3.5), that is, this path must be your home path or you need to
set this directory in the path environment variable before the V2.0
directory path. Failing to do so will use the wrong csc.rsp file needed to
locate  the correct framework assemblies.

Willy.
CSharper - 27 Mar 2008 14:11 GMT
On Mar 26, 5:55 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> On Mar 26, 5:31 pm, "Willy Denoyette [MVP]"
>
[quoted text clipped - 41 lines]
>
> - Show quoted text -

Excellent, thank you very much.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.