BUG: Visual Studio .NET 2003 Debugger steps into Visual C++ .NET 2002 source files after you migrate a Visual C++ .NET 2002 project to Visual C++ .NET 2003 (828556)
The information in this article applies to:
- Microsoft Visual C++ .NET (2003)
SYMPTOMSYou have a computer that has Microsoft Visual Studio .NET
2002 and Microsoft Visual Studio .NET 2003 installed. After you migrate a
Microsoft Visual C++ .NET 2002 project to Microsoft Visual C++ .NET 2003, and
you debug the code in Visual C++ .NET 2003, you notice that the Visual Studio
.NET 2003 debugger steps into the Visual C++ .NET 2002 source
files.CAUSEWhen you migrate a Visual C++ .NET 2002 project to Visual
C++ .NET 2003, Visual Studio .NET 2003 does not update the Debug Source
Files property of your solution to correspond to the Visual C++ .NET
2003 source file folders instead of the Visual C++ .NET 2002 source file
folders. Therefore, the Visual Studio .NET 2003 debugger steps into the Visual
C++ .NET 2002 source files instead of the Visual C++ .NET 2003 source
files.WORKAROUNDTo work around this behavior, use one of the following
methods. Note These workarounds are based on the sample from the "More
Information" section of this article. The code, the file names, and the user
interface elements in these workarounds may differ from your code, your file
names, and your user interface elements. Method 1: Manually change the Debug Source Files Property of the solution- After you migrate the project from
Visual C++ .NET 2002, right-click the solution node in
Solution Explorer in Visual C++ .NET 2003, and then click
Properties.
- In the MFCProject Property Pages dialog
box that appears, expand Common Properties .
- Under Common Properties, click
Debug Source Files.
- In the Search these paths for source files
list, double-click each list item, and then change the path of the
corresponding Visual C++ .NET 2003 source file path as
follows:
Visual Studio .NET 2003 Installed
Path\Vc7\crt\src\ Visual Studio .NET 2003
Installed Path\Vc7\atlmfc\src\mfc\ Visual Studio
.NET 2003 Installed Path\Vc7\atlmfc\src\atl\
Where
Visual Studio .NET 2003 Installed Path is the
directory where you installed Visual Studio .NET 2003. - Click OK to save the settings.
Method 2: Delete the Visual Studio Solution User Options (.suo) file- After you migrate the project from Visual C++ .NET 2002 to
Visual C+ .NET 2003, exit Visual Studio .NET 2003.
- In Windows Explorer, locate the folder that contains the
solution files.
- Delete the MFCProject.suo file.
- Reopen the project in Visual Studio .NET
2003.
Verify that the Debug Source Files property of
the solution contains paths that correspond to the Visual C++ .NET 2003 source
files. Note The MFCProject.suo file is a hidden file. If you delete this
file, all breakpoints, bookmarks, and other user settings will be
lost. STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 12/30/2005 |
---|
Keywords: | kbUpgrade kbMigration kbDevStudio kbbug KB828556 kbAudDeveloper |
---|
|