Independent Technical Report

Visual Studio
Bookmark Path Issue

A potentially serious document navigation problem when working with duplicated project folders.

IMPORTANT — Potential Source Code Integrity Issue

Previously created bookmarks may apparently continue referencing source files belonging to an older copy of a Visual Studio project.

Developers may unknowingly edit files in a different project folder from the one they believe they are working on.

01 Problem Description

A potentially dangerous issue has been observed when using Visual Studio bookmarks across duplicated project folders.

Consider a developer who regularly creates complete backup copies of a project before implementing significant changes. This is a common and perfectly legitimate development workflow.

After duplicating the entire project folder and opening the new copy, previously created bookmarks may still appear to reference documents belonging to the original project location.

When a bookmark is selected, Visual Studio may open the original source file rather than the corresponding file in the currently opened project copy.

The exact internal mechanism responsible for this behavior requires further investigation.

02 How to Reproduce

  1. Create a Visual Studio project.
  2. Open several source files.
  3. Create multiple bookmarks in those files.
  4. Save and close the solution.
  5. Make a complete copy of the project folder.
  6. Open the copied solution from its new location.
  7. Use the previously created bookmarks, if they remain available.
  8. Modify and save the documents opened through those bookmarks.
  9. Inspect the actual physical paths of the modified files.

The critical test is to establish whether the documents opened through bookmarks belong to the new project folder or to the original one.

03 Expected Behavior

Bookmarks should resolve documents within the currently opened project context.

If a bookmark references a document outside the current project location, Visual Studio should clearly warn the developer rather than silently opening an external document.

04 Reported Behavior

In the reported scenario, bookmarks can apparently retain references to documents in the original project folder.

This can result in source code modifications being saved in different project copies without the developer realizing it.

Example of possible project contamination

Source file Actual version
Main.cppVersion 5
Database.cppVersion 3
Engine.cppVersion 2
Dialog.cppVersion 4
Report.cppVersion 1

A project that appears to be a single coherent version may actually contain files modified in several different project copies.

05 Why This Is Serious

This is not merely a minor inconvenience involving navigation or editor preferences.

It can potentially compromise the integrity of an entire software project.

The most dangerous aspect is that the developer may receive no obvious indication that modifications are being made outside the intended project folder.

06 Suggested Investigation

The Visual Studio development team should investigate:

07 Development Environment

IDE: Microsoft Visual Studio

Operating System: Windows

Workflow: Complete project folder duplication and successive development versions.

Reproduction: Reported user experience; controlled reproduction and version details pending.

08 Request to Microsoft

We invite Microsoft to investigate this behavior and verify whether bookmark references can persist across different physical copies of the same project.

An IDE should never silently redirect source code modifications to an unintended project version.

Clear warnings, proper project-context resolution, and reliable document path management are essential for development environment integrity.

Technical Discussion & Contact

Have you experienced the same issue? Have you found a way to reproduce it consistently?

Developers, Visual Studio users and Microsoft engineers are welcome to get in touch to discuss this report.

INDEPENDENT TECHNICAL REPORT