[Visual Studio] always open relay data page addressing moved to define

Abstract: [Visual Studio] always open relay data page addressing moved to define


In a program (Solution) which may be cut into multiple projects in accordance with different functions (Project)

These items may be added to each reference (References) to use each other's functions

There are two projects in the same program, namely,

- ConsoleApplication3 (main program)

- MyLibrary (Shared Library DLL)

I joined the usual way is a direct reference to find the DLL, the file in this case inside the directory


ConsoleApplication3MyLibrarybinDebugMyLibrary.dll

That I began to quote function


using MyLibrary; //引用命名空间
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            //使用MyLibrary的类
            MyClass my = new MyClass(10, "Tim");
            my.DoSomething();
        }
    }
}

In general, this is operating normally, but if I press the F12 class MyClass above (Move defined)

Only relay data display screen (Metadata)

I might be here to change to change during the development process, there bits and pieces

What thought processes may need to be modified directly jump change

But you can not turn quickly jump to the source code is undoubtedly a troublesome

I just want to see the source code, but it always ran out of the relay data, which is not what I want!

Because the goal is to use DLL cited reference, after a DLL compiled in Visual Studio can not show them the source code, lists only public function

Solution

1. Delete the references in the original reference (References) above

2. Re-open the added reference page, but refer to the option to change the way the use of project resources

Other than directly to the source code to do this in addition to the benefits

If the program within MyLibrary I reconstructed, such as renaming the class, it will be linked to another project in place to modify the reference to

And in the Function Reference can also be faster to see who cites this feature

Plus if the DLL can be modified without being recompiled able to use the latest version of the function

Before I face this problem and set out to improve may have spent a few hours I do not know recompile the library, kept switching individual reconstruction projects

Think really is quite a waste of life

Original: Large column  [Visual Studio] always open relay data page addressing moved to define


Guess you like

Origin www.cnblogs.com/chinatrump/p/11458342.html