查看源链接在Visual Visual Studio,Visual Studio 2017中不起作用 [英] View Source link does not work in Live Visual Tree, Visual Studio 2017

查看:81
本文介绍了查看源链接在Visual Visual Studio,Visual Studio 2017中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


环境:




  • Windows 10

  • Visual Studio 2017

  • .NET Framework 4.6.2有针对性的



预先要求:启用运行时工具。禁用托管兼容模式。创建WPF项目,我的包括自定义对话框和按钮(我认为这不重要)。





步骤:






    1. 在调试模式下开始构建

    2. 从运行时工具框中选择"启用选择"。

    3. 在GUI上选择一个控件。

    4. 选择"转到实时可视树"


      • 所选控件在实时可视树中标识。


    5. 右击控制。


      • 查看源选项列出,可用且可点击。


    6. 点击"查看来源"。


      • 问题:没有任何反应,文件没有显示。


    7. 再次右键单击该控件,选择"显示属性"

    8. 在Live Property Explorer下,"Local"下拉列表是引用控件的文件,它是一个可点击的链接"testwindow.xaml"。点击链接到该文件(应该与"查看源"按钮相同)。


      • 问题:没有任何反应,文件没有显示。




从这里我可以搜索解决方案资源管理器并手动打开文件。



什么可能阻止"查看源"按钮打开文件?

解决方案

你好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 


这篇关于查看源链接在Visual Visual Studio,Visual Studio 2017中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆