473,769 Members | 2,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1408
On 20 Sep 2006 15:35:29 -0700, "JT" <jt@onemain.com wrote:
>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.com wrote in message
news:11******** **************@ e3g2000cwe.goog legroups.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.com wrote:
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
1712
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 a lot of converting '__gc' to 'ref', converting '*' to '^', converting 'new' to 'gcnew'. Of course this can't be done with a blanket replace, as my code has both managed and unmanaged segments. Thus I have to do them one-by-one. Also, things are...
9
1452
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. I also made sure that there was no design time (ItemData) listings in the list. However, when I try to convert to .NET, two things happen: a) It gives me over 5500 errors!! (Many of them include 'could not resolve type' inspite of explicit...
14
2961
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 utilise the disco file to update the Corresponding proxy file and reflect the changes made to the web service. However, the results of doing this with out params is that the results seem
1
1766
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 (usercontrol1.textbox1.text etc). All worked fine in V2003, but 2005 is giving me a "usercontro1.textbox1 is inaccessible due to it's protection level" error. Obviously, with it now
0
957
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 found that nothing has changed. The conversion process continues to ignore the 2003 project configuration and imports files and folders that are not part of the project, and attemps to build these components. Additionally, in Solution Explorer, ...
3
4863
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: dx9.lib(WinConsole.obj) : error LNK2019: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " ... .... dx9.lib(WinConsole.obj) : error LNK2019: unresolved external symbol "public: void __thiscall...
4
2183
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 conversion process: http://webproject.scottgu.com/VisualBasic/Migration2/Migration2.aspx which is great, however, when I follow the steps in this tutorial exactly, I get 102 conversion errors! Almost all the errors have to do with ambiguous file names, but...
0
1298
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. VS 2005 opens the conversion wizard, backs up the files, makes a brief show of shuffling bits around, and announces that the conversion is complete. If it produces a conversion report, the report either says that one file was converted (the vbproj...
5
4006
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 function which takes an Object * then I get compilation errors. The only way to avoid these seems to be to create a temporary string on the heap, e.g.
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10198
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8860
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6661
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5432
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3947
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2810
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.