If Visual Studio 2010 based on WPF, why I cannot open it with reflector?
In other words, devenv.exe seems to be native assembly, so where is the WPF UI code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Visual Studio
devenv.exeexecutable is indeed a native program. However, native programs can load the .NET runtime and thereby host Windows Forms and WPF components. In fact, Visual Studio has always done this. Even before VS2010 adopted WPF for its editor and shell, the various Visual Studio designers were implemented in Windows Forms. If you go into theCommon7\IDEandCommon7\IDE\PrivateAssembliesdirectories, you’ll find lots of designer DLLs that you can view in Reflector (e.g.Microsoft.VisualStudio.ORDesigner.Dsl.dllis the LINQ to SQL designer).So the new WPF bits of Visual Studio are just another set of managed assemblies hosted in the native executable. I’m not sure which particular assemblies host the WPF bits — and to be honest there are probably dozens. But looking at the VS process in the debugger, I’d say
Microsoft.VisualStudio.Editor.dll(which lives in the GAC, not in the VS install directory) would be a good place to start.