“源信息不可用”在多项目解决方案中 [英] "Source information is not available" in multiproject solution

查看:217
本文介绍了“源信息不可用”在多项目解决方案中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含三个项目的解决方案 - 两个导致程序集和另一个shell exe的项目。


如果我运行  VS 2017性能分析器(CPU使用率)我按功能获得预期的使用情况报告,但是如果我尝试点击任何功能名称来查看源代码,我会得到不友好的消息"源信息不可用"。除了
以外的项目中与exe相对应的函数。  pdb文件都在一起它们应该在哪里。


我尝试将启动项目设置为我最感兴趣的exe和程序集(适当地设置可执行文件) )。


虽然这是我过去曾经和我打过架的事情,但直到今天我将VS 2017更新到最新版本(15.4.2)时似乎还能工作。  由于我是间歇性地进行这种类型的分析,我可能会忘记一些事情。

解决方案

我刚刚在VS2017 15.4中测试了它。 2:




我可以看到代码:




所以我不能确定它是由新的更新15.4.2造成的。但是你可以通过
帮助 - >向VS开发团队报告。发送反馈 - >报告问题



我还建议创建一个新项目,我是否使用WPF,看看是否全新的应用程序仍然遇到这个问题。


当然,您可以与我们分享您的代码,我会测试它是否可以帮助您。


  ;


致以最好的问候,


Fletcher 




I have a solution with three projects--two projects that result in assemblies and another shell exe.

If I run the  VS 2017 performance profiler (CPU usage) I get the expected report of usage by function, but if I try to click on any function name to view the source, I get the unfriendly message "Source information is not available" except for functions that are in the project corresponding to the exe.  The pdb files are all together where they should be.

I tried setting the start up project to be both the exe and the assembly I'm most interested in profiling (with the executable set appropriately).

Although this is something I've fought with in the past, it seemed like I had it working until today when I updated VS 2017 to the latest version (15.4.2).  Since I do this type of profiling rather intermittently I may be forgetting something.

解决方案

I just tested it in my side with VS2017 15.4.2:

and I could see the code:

So I cannot be sure that it's caused by the new update 15.4.2. But you could report it to VS developing team anyway through Help -> Send feedback -> Report a problem.

I also suggest create a new project, i was using WPF, and see if the brand new application still suffer this issue.

Of course, you could share your code with us, I will test it to help you out if it's possible.

 

Best regards,

Fletcher  


这篇关于“源信息不可用”在多项目解决方案中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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