DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to include System.Core.dll (.net 3.5) to a .net 2.0 application

  1. #1
    Join Date
    Oct 2009

    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 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,

  2. #2
    Join Date
    Sep 2007
    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

Similar Threads

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center