Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > ASP.NET

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-26-2009, 08:04 AM
Dilip Dilip is offline
Registered User
 
Join Date: Oct 2009
Posts: 1
How to include System.Core.dll (.net 3.5) to a .net 2.0 application

My project is in .net framwork 2.0 and i want to use TimezoneInfo class.

When i use the below line..it is giving an error like " Type TimezoneInfo is not defined"

Dim zones As ReadOnlyCollection(Of TimeZoneInfo) = TimeZoneInfo.GetSystemTimeZones()

Actually my requirement is to get all the timezones and functions for getting time by timezoneId.

How can i use the TimezoneInfo class in .Net 2.0 Application

Thank you,
Dilip.
Reply With Quote
  #2  
Old 11-06-2009, 02:35 PM
jwiese jwiese is offline
Registered User
 
Join Date: Sep 2007
Posts: 63
Technically this is not possible, yet. With .NET you can only load one version of the framework into an app domain so, since your application is based on 2.0 you would not be able to reference and use the 3.5 assemblies as well. Now, 3.5 is based on 2.0 so you should be able to recompile your application as a 3.5 application and it should work without any major issues. There may be small changes needed, but even that is unlikely.
__________________
John Wiese
ISV Architect Evangelist - Microsoft
http://blogs.msdn.com/usisvde
Reply With Quote
Reply

Bookmarks

Tags
asp.net, dll

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.net 2.0 problem jabbarsb ASP.NET 1 11-15-2006 10:51 AM
Java vs. .Net. A questionnaire Basil .NET 1 05-13-2005 07:46 AM
C# & .NET Vikas Garg Careers 18 07-13-2002 12:58 PM
YAG's public status report - March 7, 2002 Seth Grossman [MSFT] vb.announcements 1 03-13-2002 08:32 PM
Microsoft .NET security Blair Dillaway Security 2 11-18-2000 02:02 PM


All times are GMT -4. The time now is 08:25 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.