Visual Studio 2022 Teams Code Review Error on xaml files

TCH 6 Reputation points
2023-10-02T14:02:36.65+00:00

On one laptop, in Visual Studio 2022 Teams Code Review (source control is on Azure), when clicking on a .xaml file, the error "Empty path name is not legal" pops up. This only happens when reviewing .xaml files and only on one machine. Any ideas? Note: Edit xaml files in VS2022 works fine on the same machine with no errors and XAML settings appear to match other developer laptop settings.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,090 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
765 questions
{count} votes

3 answers

Sort by: Most helpful
  1. TCH 6 Reputation points
    2023-11-13T17:14:26.6433333+00:00

    I was able to resolve this by quitting OneDrive, repairing Visual Studio 2022, and rebooting.  Rebooting started up OneDrive again, but with all paths pointing locally and not to OneDrive.

    0 comments No comments

  2. TCH 6 Reputation points
    2023-11-13T17:16:12.97+00:00

    I was able to resolve this by quitting OneDrive, repairing Visual Studio 2022, and rebooting.  Rebooting started up OneDrive again, but with all paths pointing locally and not to OneDrive.

    0 comments No comments

  3. TCH 6 Reputation points
    2023-11-13T17:18:26.7166667+00:00

    For some reason, accept as answer is not available

    0 comments No comments