为什么要定义打开元数据 [英] Why go to definition opens meta data

查看:136
本文介绍了为什么要定义打开元数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Project解决方案中,我有两个类库项目,也称为业务层和数据库层。我添加了两者的引用,但我可以从业务层打开类文件到数据库层,但我无法打开从c#代码到业务层的类文件。我也在Web项目中添加了业务层引用,但它仍然打开了元数据文件。



我尝试过: <在bogle上试用


i,Visual Studio转到定义元数据

In my Project solution i have two class library projects also called as Business Layer and Database Layer. i added the reference for both, but i can open the class file from Business Layer to Database Layer, but i can't open the class file from the c# code to Business layer. i added the business layer reference also in the web project, but still it open the meta data file.

What I have tried:

i tried in google, Visual Studio go to definition metadata

推荐答案

到Visual Studio直接打开源代码而不是解编译(元数据)版本,你必须有一个项目引用...

问题开始时,你添加了对DLL的引用而不是项目...在这个案例VS将永远记住,并且将始终打开'从元数据',即使您将引用从DLL更改为项目...我现在唯一的方法是手动编辑项目文件并删除DLL引用...

如果您有ReSharper,您可以将其配置为开源,即使您已经引用了DLL(如果DLL用于调试并且具有相关信息)...
To Visual Studio to open the source directly and not a de-compiled (metadata) version, you have to have a project reference...
The problem begins when you added the reference to the DLL and not to the project... In this case VS will remember forever that and will always open 'from metadata' even you changed the reference from DLL to project... The only way I now of, is manually editing the project file and remove the DLL reference...
If you have ReSharper, you can configure it to open source even you have reference to the DLL (if the DLL is for debug and has the info for that)...


这篇关于为什么要定义打开元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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