473,503 Members | 4,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TimeZoneInfo in projects converted VS2003 to VS2008


if I make a new project with VS2008, the class TimeZoneInfo is
normally recognized and I can use it normally.

But if I attempt to use it in a converted project (2003->2008) the
compiler does not recognize the class (says that the Type is not
recognized).

I can't figure out which reference I should change or update. This
should be in System and the system reference is there (?)

Can anyone advise on how to make this work ?
Thank you,

-P
Oct 27 '08 #1
5 2384
"pamela fluente" <pa***********@libero.itschrieb
>
if I make a new project with VS2008, the class TimeZoneInfo is
normally recognized and I can use it normally.

But if I attempt to use it in a converted project (2003->2008) the
compiler does not recognize the class (says that the Type is not
recognized).

I can't figure out which reference I should change or update. This
should be in System and the system reference is there (?)

Can anyone advise on how to make this work ?

The documentation says that it's available in Framework 3.5
Armin
Oct 27 '08 #2
Pamela,

I think that we can, but it would be the best I you showed the code that
does not work,

Cor

"pamela fluente" <pa***********@libero.itwrote in message
news:7a**********************************@c60g2000 hsf.googlegroups.com...
>
if I make a new project with VS2008, the class TimeZoneInfo is
normally recognized and I can use it normally.

But if I attempt to use it in a converted project (2003->2008) the
compiler does not recognize the class (says that the Type is not
recognized).

I can't figure out which reference I should change or update. This
should be in System and the system reference is there (?)

Can anyone advise on how to make this work ?
Thank you,

-P
Oct 27 '08 #3
Pamela

The TimezoneInfo class is new in Framework 3.5 in previous versions we had
the Timezone class
so i guess you mixed the 2 up ,,,,, ;-)
HTH

Michel Posseth
http://www.vbdotnetcoder.com

"pamela fluente" <pa***********@libero.itschreef in bericht
news:7a**********************************@c60g2000 hsf.googlegroups.com...
>
if I make a new project with VS2008, the class TimeZoneInfo is
normally recognized and I can use it normally.

But if I attempt to use it in a converted project (2003->2008) the
compiler does not recognize the class (says that the Type is not
recognized).

I can't figure out which reference I should change or update. This
should be in System and the system reference is there (?)

Can anyone advise on how to make this work ?
Thank you,

-P

Oct 27 '08 #4

to be more precise

http://msdn.microsoft.com/en-us/libr....timezone.aspx
VS
http://msdn.microsoft.com/en-us/libr...ezoneinfo.aspx
HTH

Michel

"pamela fluente" <pa***********@libero.itschreef in bericht
news:7a**********************************@c60g2000 hsf.googlegroups.com...
>
if I make a new project with VS2008, the class TimeZoneInfo is
normally recognized and I can use it normally.

But if I attempt to use it in a converted project (2003->2008) the
compiler does not recognize the class (says that the Type is not
recognized).

I can't figure out which reference I should change or update. This
should be in System and the system reference is there (?)

Can anyone advise on how to make this work ?
Thank you,

-P

Oct 27 '08 #5
On 27 Ott, 20:48, "Michel Posseth [MCP]" <M...@posseth.comwrote:
to be more precise

http://msdn.microsoft.com/en-us/libr....timezone.aspx
VShttp://msdn.microsoft.com/en-us/library/system.timezoneinfo.aspx

HTH

Michel

"pamela fluente" <pamelaflue...@libero.itschreef in berichtnews:7a**********************************@c 60g2000hsf.googlegroups.com...


if I make a new project with VS2008, the class TimeZoneInfo is
normally recognized and I can use it normally.
But if I attempt to use it in a converted project (2003->2008) the
compiler does not recognize the class (says that the Type is not
recognized).
I can't figure out which reference I should change or update. This
should be in System and the system reference is there (?)
Can anyone advise on how to make this work ?
Thank you,
-P- Nascondi testo citato

- Mostra testo citato -
Thanks a lot to all.

Yes it must be as you say (and because the target framework remain
unchanged during conversion).

Thank you. Very helpful.

-P
Oct 28 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1503
by: TLin2100 | last post by:
I have been away from .NET development for 18 months. I recently installed VisualStudio 2003. I have no trouble compiling and running new C# ASP.Net projects, but when I try to open and run one...
6
1290
by: EmmanuelE | last post by:
Just installed VS2003 and tried a hello world app. Getting 404 error even when I explictly specify the start page in the url. In IIS Mgr (v 5.1), App has .aspx mapped to...
6
1879
by: =?Utf-8?B?SGFycnkgVg==?= | last post by:
I wrote a C# Windows app using VS2003 to read selected text files and write the data to 3 tables in an Access database. After "upgrading" to VS2005, I tried to add a feature and rebuild - what a...
0
1246
by: Academia | last post by:
I have a vs2003 solution that I want to convert to VS2005 format. These projects have been converted and now compile in VS2005. But they had the older format - they is the UI code was in .vb...
2
1757
by: Tim Haughton | last post by:
Each time I create or open many projects I get a security warning from VS2008 Team Ed: "Security Warning for {Project Name}" The dialog gives me the option of loading the solution for browsing...
2
1494
by: PawelSokolowski | last post by:
Hi all., For quite some time I have been using VC 6.0 and VS2003 on the same computer. I have read somewhere, that VC 6.0 should be installed as a second. Now I have to use also VS2008. Is...
7
5496
by: qwedster | last post by:
Guys! How to use OrderBy with TimeZoneInfo.GetSystemTimeZones() in C# 3.5 (vide Code snippet 1)? However, I got it in VB.NET 9 (vide Code snippet 2)! Code snippet 1: using System;
1
1254
by: Ronald S. Cook | last post by:
When I convert a VS2005 web project to VS2008, there is no "Reference" folder. Also, when pou go to project properties, it doesn't look like the properties page like if you started a new VS2008...
3
3940
by: SvenV | last post by:
Hello, We created an application in Visual Studio 2003 with .NET 1.1. Now we want to convert this project to .NET 2.0 and want to develop in Visual Studio 2008 (yes I know this has .NET3.5)....
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.