4 ms·
Visual Studio is not written in C#/WPF, it’s written in a mess of legacy COM and WIN32 code with some C# and SWF. (Visual Studio for Mac is, of course, an enti
by ComputerGuru 9y ago
Visual Studio is not written in C#/WPF, it’s written in a mess of legacy COM and WIN32 code with some C# and SWF.
(Visual Studio for Mac is, of course, an entirely different product and codebase).
- seanmcdirmid 9y agoI thought it was the other way around? C# on the outside, legacy code connected on the inside? Anyways, I found that confusing. For the rest, visual studio most definitely uses WPF for much of the UI but also the chrome (e.g. see https://softwareengineering.stackexchange.com/questions/75322/which-language-was-used-to-create-visual-studio-2010 https://softwareengineering.stackexchange.com/questions/7532... and https://www.quora.com/As-of-2015-how-much-of-Microsoft-Visual-Studio-is-written-in-managed-code https://www.quora.com/As-of-2015-how-much-of-Microsoft-Visua... and https://blogs.msdn.microsoft.com/visualstudio/2010/02/16/wpf-in-visual-studio-2010-part-1-introduction/ https://blogs.msdn.microsoft.com/visualstudio/2010/02/16/wpf...).
- pjmlp 9y agoAll the new code in Visual Studio for Mac for .NET tooling is being shared with Visual Studio, written in C#. The new plugin architecture, replacing the COM one, is implemented in .NET.
- seanmcdirmid 9y agoI thought VS for the Mac was just a rebrand of Xamarin Studio?
- pjmlp 9y agoInitially yes, but they have been making the Roslyn tooling the same across both IDEs. Visual Studio for Mac has many new features that weren't present in Xamarin Studio, like .NET Core support, ASP.NET types of workflows. And all new Xamarin.Forms improvements are shared between both IDEs.
- sjmulder 9y agoI'm quite sure the IDE is WPF. You can attach a debugger to it and inspect the WPF component tree.
- copper_think 9y agoYou're both right. Yes, it's WPF, and there are lots of parts written in C#. But the parent is right -- Visual Studio is C++ using COM and Win32 at its core, going back all the way to the Visual Basic IDE that shipped as part of Visual Studio 6. It would be a very difficult port to Mac, Linux, etc. As of this writing there is even no 64-bit version for Windows (although that's just a matter of spending the time and money to do it.) The brand name has been re-used for other software. Visual Studio for Mac is Xamarin. Visual Studio Code is on the Electron platform.
- chrisbennet 9y agoSurprisingly, the lack of a 64 bit version is a performance choice. ”For a long time now developers have been asking why Visual Studio hasn’t made to switch to 64-bit. Rather than effort or opportunity cost, the primary reason is performance.” https://www.infoq.com/news/2016/01/VS-64-bit https://www.infoq.com/news/2016/01/VS-64-bit