473,395 Members | 1,624 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,395 software developers and data experts.

Conversion from VS 2003 to VS 2005 doesn't update .pdb

JT
Hi,

I'm not sure where the problem is, but I think it's related to the .pdb
file. I had a class library created in VS 2003 and decided to convert
it to a VS 2005 project/solution. It seemed to go okay, and still was
successful when building, but I later had to make a modification. When
I tried, it wouldn't recognize the changes. I put in a breakpoint
right before my modification and then when stepping through it, it
jumped right over the new line of code.

Before renaming my original 2003 project directory, when I stepped
through the project, it would open the 2003 version of the source file
and walk through that. After renaming it, it didn't open the file, but
still made highlights in the new source file as if it was reading the
old file. My .pdb file contains references to the 2003 project
directory. I can't find any settings that would indicate the project
directory of choice. I can't seem to shake this problem. I have many
class libraries that are going to go through this process, so I don't
want to recreate these projects from scratch, even if I'm just copy and
pasting code files.

Has anyone experienced this? Does anyone have a fix? Is this a
registry problem <gulp>? Is there more to it than the pdb file?

Thanks.

Sep 20 '06 #1
5 1386
On 20 Sep 2006 15:35:29 -0700, "JT" <jt@onemain.comwrote:
>Hi,

I'm not sure where the problem is, but I think it's related to the .pdb
file. I had a class library created in VS 2003 and decided to convert
it to a VS 2005 project/solution. It seemed to go okay, and still was
successful when building, but I later had to make a modification. When
I tried, it wouldn't recognize the changes. I put in a breakpoint
right before my modification and then when stepping through it, it
jumped right over the new line of code.

Before renaming my original 2003 project directory, when I stepped
through the project, it would open the 2003 version of the source file
and walk through that. After renaming it, it didn't open the file, but
still made highlights in the new source file as if it was reading the
old file. My .pdb file contains references to the 2003 project
directory. I can't find any settings that would indicate the project
directory of choice. I can't seem to shake this problem. I have many
class libraries that are going to go through this process, so I don't
want to recreate these projects from scratch, even if I'm just copy and
pasting code files.

Has anyone experienced this? Does anyone have a fix? Is this a
registry problem <gulp>? Is there more to it than the pdb file?

Thanks.
I'm pretty sure you can delete the pdb files and they will be regenerated when
you recompile in 2.0.

Anyone disagree with that?
Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Sep 20 '06 #2
"JT" <jt@onemain.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Hi,

I'm not sure where the problem is, but I think it's related to the .pdb
file. I had a class library created in VS 2003 and decided to convert
it to a VS 2005 project/solution. It seemed to go okay, and still was
successful when building, but I later had to make a modification. When
I tried, it wouldn't recognize the changes. I put in a breakpoint
right before my modification and then when stepping through it, it
jumped right over the new line of code.

Before renaming my original 2003 project directory, when I stepped
through the project, it would open the 2003 version of the source file
and walk through that. After renaming it, it didn't open the file, but
still made highlights in the new source file as if it was reading the
old file. My .pdb file contains references to the 2003 project
directory. I can't find any settings that would indicate the project
directory of choice. I can't seem to shake this problem. I have many
class libraries that are going to go through this process, so I don't
want to recreate these projects from scratch, even if I'm just copy and
pasting code files.

Has anyone experienced this? Does anyone have a fix? Is this a
registry problem <gulp>? Is there more to it than the pdb file?
It's probably best to do a CLEAN on your project in VS2003 before converting
it to VS2005. That way you're assured that all of the by-products of the
build come from the 2005 compiler and there are no leftovers.

-cd
Sep 20 '06 #3
JT
Otis:
Thanks for the suggestion. I already tried that and it gets recreated
just as it was (or at least still using the 2003 directory).

Carl:
I am not aware of the Clean functionality, although I saw it in 2005
when I right-clicked on the solution in Solution Explorer. I'll have
to look that up. For the rest of the people out there, can you explain
what it does?

Any other suggestions? I'll let you know if the Clean helps.

Otis Mukinfus wrote:
On 20 Sep 2006 15:35:29 -0700, "JT" <jt@onemain.comwrote:
Hi,

I'm not sure where the problem is, but I think it's related to the .pdb
file. I had a class library created in VS 2003 and decided to convert
it to a VS 2005 project/solution. It seemed to go okay, and still was
successful when building, but I later had to make a modification. When
I tried, it wouldn't recognize the changes. I put in a breakpoint
right before my modification and then when stepping through it, it
jumped right over the new line of code.

Before renaming my original 2003 project directory, when I stepped
through the project, it would open the 2003 version of the source file
and walk through that. After renaming it, it didn't open the file, but
still made highlights in the new source file as if it was reading the
old file. My .pdb file contains references to the 2003 project
directory. I can't find any settings that would indicate the project
directory of choice. I can't seem to shake this problem. I have many
class libraries that are going to go through this process, so I don't
want to recreate these projects from scratch, even if I'm just copy and
pasting code files.

Has anyone experienced this? Does anyone have a fix? Is this a
registry problem <gulp>? Is there more to it than the pdb file?

Thanks.
I'm pretty sure you can delete the pdb files and they will be regenerated when
you recompile in 2.0.

Anyone disagree with that?
Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Sep 21 '06 #4
JT wrote:
Otis:
Thanks for the suggestion. I already tried that and it gets recreated
just as it was (or at least still using the 2003 directory).

Carl:
I am not aware of the Clean functionality, although I saw it in 2005
when I right-clicked on the solution in Solution Explorer. I'll have
to look that up. For the rest of the people out there, can you
explain
what it does?
Clean deletes all of the by-products of build - in particular, .DLL, .EXE,
..LIB, .OBJ, .PDB... the exact set of files deleted by Clean depends on the
project type. Hopefully it helps your situation.

-cd


Sep 21 '06 #5
JT
Carl,

I looked for the Clean Solution command in the VS 2003 IDE but couldn't
find it. There is a devenv command with a /clean switch but I couldn't
get it to do anything. I may have been doing something wrong, but it
came back with 0s for all three results. That was for both the debug
and release configurations.

I tried "cleaning" the 2005 solution and then rebuilding it and the
..pdb now has references to the 2005 project path, but it still tries to
run the 2003 code when stepping through the test code in debug mode.
So... I don't think that cleaning my project is the answer (unless I'm
doing something wrong).

I started to recreate the class library and test form but when I tried
to create the form part of the solution, I noticed that the C# Windows
Form template was now missing (like my Master Page template that
disappeared last week). Looking at the Microsoft forum, I saw entries
that said to repair or reinstall Visual Studio. Any chance you (or
anyone else reading this) has overcome this second issue?

Thanks.
Carl Daniel [VC++ MVP] wrote:
JT wrote:
Otis:
Thanks for the suggestion. I already tried that and it gets recreated
just as it was (or at least still using the 2003 directory).

Carl:
I am not aware of the Clean functionality, although I saw it in 2005
when I right-clicked on the solution in Solution Explorer. I'll have
to look that up. For the rest of the people out there, can you
explain
what it does?

Clean deletes all of the by-products of build - in particular, .DLL, .EXE,
.LIB, .OBJ, .PDB... the exact set of files deleted by Clean depends on the
project type. Hopefully it helps your situation.

-cd
Sep 21 '06 #6

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

Similar topics

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...
9
by: Vince | last post by:
Hi all, I am trying to convert a VB 6 application to VB.NET 2005 using the wizard. It has over 20 forms and I've used Option Explicit everywhere, hence variables are properly declared and used....
14
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
1
by: musosdev | last post by:
Hi I've got a project I've just run through the conversion wizard, and it's giving me a few headaches. I've got a user control which has controls referrenced from its calling page...
0
by: StanD | last post by:
Since last Dec I have been waiting for the update that will allow me to port my projects to 2005. I have installed the download, the available update to permit me to successfully do this. I have...
3
by: Edward Mitchell | last post by:
I am converting a project that uses DirectX and worked under VS.NET 2003. Now when I convert the project to .NET 2005, there are linker errors for _Xran and _Xlen as follows: ...
4
by: Coleen | last post by:
Hi All :-) I'm new to this site. I've been trying to convert several .Net 2003 web applications and getting tons of conversion errors. I found this site to help walk me through the...
0
by: =?Utf-8?B?RWFjaHVz?= | last post by:
I've made several attempts to upgrade an application from asp.net 1.1 to 2.0. I open the web site by selecting the vbproj file, by selecting the solution file, or by selecting the web application....
5
by: kelvin.koogan | last post by:
I want to declare an array of constant strings. In unmanaged C++ I'd do this static const char *string = { "One", "Two, "Three" }; However if I do this in .NET and want to pass these to a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.