Emailid
Password
         
  
    Forgot password

New user Sign Up
 

 

Compilation error in .NET 3.5 or C# 3.0                             

Author Name Status Posted Time
Mauritus Sourondakya 5/7/2008 12:31:10 AM
Author is Offline

Hi friends,

I'm clearly missing something: I installed .NET 3.5, which installed fine. 
I open an ASPX page and add a .NET 3.5 or C# 3.0 specific feature (such as "var name = 'Tyrven'") and I get a compilation error. 
For example,

CS0246: The type or namespace name 'var'
could not be found 
CS0234: The type or namespace name 'Linq'
does not exist in the namespace 'System' 

Obviously it is still using the CSC.exe that shipped with .NET 2.0 and isn't including references to the new .NET 3.5 class libraries. 
I've looked up the fact that .NET 3.0 doesn't show up in the ASP.NET tab in IIS and understand that to be by design - that .NET 3.5 sits on top of .NET 2.0 in much the same way that .NET 3.0 did. 
I've seen references to this issue instructing VS2008 users to target .NET 3.5;
I don't use the IDE, though. 

My assumption is I need to add a <compiler />
element and possibly some assembly references to my web.config or machine.config. 
I expected to find documentation on this in the SDK, but didn't. 
What step am I missing?

 

Subject Author Status Date

Re: Compilation error in .NET 3.5 or C# 3.0

Seleimon Kolonja 5/7/2008 3:54:49 AM

Re: Thanks!

Mauritus Sourondakya 5/7/2008 4:02:55 AM

Re: It worked well!

Mauritus Sourondakya 5/7/2008 4:03:53 AM
Related Forums
Optimizing Images
Get a Website Template for Free!!!
Get a Website Template for Free!!!
Reply to Hesus!!!
Do You Sell Your Templates on Ebay?





Home | About Us | Site Map | Privacy Policy