473,413 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Can C# 2003 upgrade to C# 2005?

I have a C# project created in VS.NET 2003. I tried to run it in VS.NET
2005. 2005 did a conversion. I see much VB code and VB style comments. I
don't know what it did. Will a 2003 C# project run in 2005?

Thanks,
Brett
Nov 17 '05 #1
6 1378
You shouldn't need to "convert" a C# 2003 project to compile with C# 2005 -
as far as I know they're backwards compatible.
You must have converted it to a VB project if you have ended up with VB
code.
There's several possibilities - one is that in 2003 you didn't have VB
installed but with 2005 you did, and you thought the top option was C# when
in fact when you've got VB installed its projects appear above C#'s, and you
clicked VB by mistake.
The other is you've been sucked in by an underhand attempt by Microsoft to
force you into "VB2005" (the version of VB.NET upgraded to not have the
".NET" title) - if that's the case you're probably doomed for life and will
likely also have to sign over your soul to it.
A third is that the C# project was actually a solution that had a VB project
as one of its dependencies and it is this you are looking at.
The fourth is that the VB code is not actually a project but an IDE-macro,
which as far as I know can only be written in VB.

Try it to see if it will compile. If it does it will probably all be ok.
However I'm sure C# 2005 isn't different in syntax to C# 2003...
Nov 17 '05 #2

"Bonj" <a@b.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You shouldn't need to "convert" a C# 2003 project to compile with C#
2005 - as far as I know they're backwards compatible.


The project file format has changed, so there is a conversion process that
occurs when loading a 2003 project or solution. But that will not change any
of your code.
Nov 17 '05 #3

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:em**************@TK2MSFTNGP15.phx.gbl...

"Bonj" <a@b.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You shouldn't need to "convert" a C# 2003 project to compile with C#
2005 - as far as I know they're backwards compatible.


The project file format has changed, so there is a conversion process that
occurs when loading a 2003 project or solution. But that will not change
any of your code.


Does that mean you are forever stuck with VS2005 ?

Or can you still develop using VS2003 ?
--
Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net.
Current issue Diving in North America, 99 pages.
Download it in PDF
Nov 17 '05 #4

"Soren Reinke" <so***@reinke.fjernmig.dk> wrote in message
news:d8***********@newsbin.cybercity.dk...

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:em**************@TK2MSFTNGP15.phx.gbl...

"Bonj" <a@b.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You shouldn't need to "convert" a C# 2003 project to compile with C#
2005 - as far as I know they're backwards compatible.


The project file format has changed, so there is a conversion process
that occurs when loading a 2003 project or solution. But that will not
change any of your code.


Does that mean you are forever stuck with VS2005 ?

Or can you still develop using VS2003 ?


Well, VS will bakcup the solution file, but that file is vs2005+ only as the
format is entirely different(It uses the MSBuild xml format now), so you'll
have to use some kinda tool to swap back and forth if you need to use both.

Nov 17 '05 #5
On Tue, 7 Jun 2005 16:37:49 -0500, "Daniel O'Connell [C# MVP]"
<onyxkirx@--NOSPAM--comcast.net> wrote:

"Soren Reinke" <so***@reinke.fjernmig.dk> wrote in message
news:d8***********@newsbin.cybercity.dk...

Does that mean you are forever stuck with VS2005 ?

Or can you still develop using VS2003 ?


Well, VS will bakcup the solution file, but that file is vs2005+ only as the
format is entirely different(It uses the MSBuild xml format now), so you'll
have to use some kinda tool to swap back and forth if you need to use both.


I am doing this now with VS2005 Beta 2. I have it and VS 2003 installed
together, and I have subdirectories named "2003" and "2005" in my project
directory where I keep the different versions of the .csproj and .sln files,
keeping the program source files in the main project directory.

But if you are doing something like this, be sure to delete the /obj
subdirectory before running VS2003 after having run VS2005, because VS2003
(understandably) croaks when trying to work with binary outputs created by
VS2005.

Chuck
Nov 17 '05 #6

"Chuck Heatherly" <ch*************@community.nospam> wrote in message
news:h0********************************@4ax.com...
On Tue, 7 Jun 2005 16:37:49 -0500, "Daniel O'Connell [C# MVP]"
<onyxkirx@--NOSPAM--comcast.net> wrote:

"Soren Reinke" <so***@reinke.fjernmig.dk> wrote in message
news:d8***********@newsbin.cybercity.dk...

Does that mean you are forever stuck with VS2005 ?

Or can you still develop using VS2003 ?


Well, VS will bakcup the solution file, but that file is vs2005+ only as
the
format is entirely different(It uses the MSBuild xml format now), so
you'll
have to use some kinda tool to swap back and forth if you need to use
both.


I am doing this now with VS2005 Beta 2. I have it and VS 2003 installed
together, and I have subdirectories named "2003" and "2005" in my project
directory where I keep the different versions of the .csproj and .sln
files,
keeping the program source files in the main project directory.

But if you are doing something like this, be sure to delete the /obj
subdirectory before running VS2003 after having run VS2005, because VS2003
(understandably) croaks when trying to work with binary outputs created by
VS2005.


Hi Chuck

Thanks for the tips, that is just the situation i might end up in, having to
use both versions for now.

--
Best regards Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Cover story: CAYMAN ISLANDS main features by John Collins and Alex Mustard.
Leigh Cunningham: Gear Configuration
Nov 17 '05 #7

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

Similar topics

0
by: ibeetb | last post by:
I already have fully working copies of Visual Studio 2003, Excel 2003 and VSTO. I have previously installed them all correctly. NOW, I want to upgrade my Visual Studio 2003 to Visual Studio 2005....
11
by: Peter Oliphant | last post by:
I've been trying all morning to convert my 2003 project (managed) to 2005 (/clr since I have both managed and unmanaged code). I'm guessing I have tens of thousands of lines of code to change. Did...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
10
by: Shane Story | last post by:
Is 2005 worth the upgrade? Some time ago, I read it was really slow. Is this true? Any thoughts would be appreciated. Also, how easy is it to upgrade from 2003 app to 2005? Does it break...
6
by: Notgiven | last post by:
I have visual studio 2003 but am just starting to learn in earnest and wonder if I can use vs. 2003 or do I need to upgrade? If I need to upgrade, is there an inexpesive way to do this? (looks...
1
by: jrett | last post by:
I need to create a large number of VS 2005 .csproj files from an equal number of VS 2003 .csproj files so that I can use msbuild with MSBee to build .NET 1.1 software. My question, is there a...
2
by: Rahara | last post by:
Hello everyone, I have recently upgraded to SQL 2005 because a client has also upgraded to SS05. To keep the .NET Visual studio compatible I need to uprade to VS 2003 (7.1) with SP1 installed over...
1
by: =?Utf-8?B?ZGFuc3Rkb3RuZXQ=?= | last post by:
I've tried to upgrade my existing ASP.NET 2003 app to 2005 and I get a ton of errors. It compiles and runs perfect in 2003 but i get hundreds of errors in 2005. Is there an easier way to upgrade...
5
by: cj | last post by:
In 2003 I had Public Class Form1 Inherits System.Windows.Forms.Form In 2005 I've seen it with and without the Inherits System.Windows.Forms.Form. Is it supposed to be there? I'm wondering...
4
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
We have to upgrade our Visual Studio .NET 2003 enterprise edition to .NET 2005. However, there is no enterprise edition for Visual Studio .NET 2005. There are 4 versions available for visual...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.