且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

查看源链接在Visual Visual Studio,Visual Studio 2017中不起作用

更新时间:2023-02-25 18:04:58

你好RichW _,


欢迎来到MSDN论坛。


感谢您向我们报告问题,它已在最新版本中修复视觉工作室2017,请通过视觉工作室安装程序更新视觉工作室2017(当我在vs2017的先前版本中测试它时,我遇到与
相同的问题。)。



祝你好运,


乔伊斯 


Environment:

  • Windows 10
  • Visual Studio 2017
  • .NET Framework 4.6.2 Targeted

Pre-reqs: Enable Runtime Tools. Disable managed compatibility mode. Create WPF project, mine includes custom dialogs and buttons (I don't think this matters though).

Steps:

    1. Start build in Debug mode
    2. Select "Enable Selection" from the runtime tools box.
    3. Select a control on the GUI.
    4. Select "Go to Live Visual Tree"
      • The selected control is identified in the Live Visual Tree.
    5. Right click control.
      • View Source option is listed, available, and clickable.
    6. Click "View Source".
      • ISSUE: Nothing happens, file is not shown.
    7. Right click the control again, select "Show Properties"
    8. Under Live Property Explorer, next to the "Local" drop down is the file where the control is referenced, it is a clickable link "testwindow.xaml". Click the link to the file (should be the same as the "View Source" button).
      • ISSUE: Nothing happens, file is not shown.

From here I can search the Solution Explorer and manually open the file.

What might prevent the "View Source" button from opening the file?

Hi RichW_,

Welcome to MSDN forum.

Thank you for report the problem to us, it has been fixed in the latest version of visual studio 2017, Please update visual studio 2017 via visual studio installer(When I test it in the previous version of vs2017, I have the same problems with you.).

Best regards,

Joyce