ViewModelBase.IsInDesignMode is not working for VS plug-in


Hi, I found that ViewModelBase.IsInDesignMode is not working (always returns true) for my plug-in for Visual Studio. I was curios to know why, after looking at the code it became obvious.
You check for design mode, just by looking at process name.
Maybe there are other ways of performing such check?
I can see this behavior on MvvmLight.3.0.3 and when run my plug-in in VS2008 SP1 on .Net 3.5 SP1
Closed Oct 13, 2014 at 1:56 PM by lbugnion


lbugnion wrote Dec 16, 2011 at 1:01 PM


The check for process name is a last chance check, which was added after we noticed a few issues in Visual Studio 2008 designer. I agree that it is unfortunate. I will see if I can revert to a more normal approach.

In the meantime, I suggest getting the code and removing the process name check for your particular usage.

Hope it makes sense,