David Sandor

Build succeeded.

Solved: Add new configuration to Visual Studio 2010 project and code will no longer compile.

clock May 24, 2011 11:17 by author dsandor

Scenario

Create a new configuration in Visual Studio and select ‘copy’ from an existing working configuration.  The new configuration will not compile now.

image

As it turns out, Visual Studio 2010 (even with SP1) does not copy the Conditional compilation symbols.

image

Adding in my conditional compilation symbols allows the project to compile now.



Two MVVM snippets I use a lot: ViewModelBase and ModelBase

clock September 5, 2010 18:03 by author dsandor

I use these two snippets a lot for WPF and Silverlight development.  I decided to post them on the blog so that I have them available to me whenever and wherever.  I always seem to be searching through older projects for this code.

vmb

This snippet creates the ViewModelBase that I use almost everywhere.  It simply implements INotifyPropertyChanged and works in both WPF and Silverlight.  I use this for my ViewModels so that the properties on the VM are observable for databinding.  I use this in conjunction with my propsn snippet that creates a property with SafeNotify calls in the setter.

mb

This snippet is used to create the ModelBase.  Again, this is a WPF / Silverlight compatible class.  I link my model such that it compiles for WPF and Silverlight so that I can share my model between my WCF and my UI.  This class gives me INotifyPropertyChanged, SafeNotify, and a ToString implementation that uses reflection to dump a shallow representation of the class.

Hope this code helps someone.



Make Visual Studio 2010 even better with Productivity Tools

clock August 7, 2010 06:38 by author dsandor

If you have not installed the latest version of the Visual Studio Productivity Power Tools (The LATEST release that is), you are missing out on some killer functionality.

Download them here:
http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef

There is now a Solution Navigator:

image

Advanced object information when hovering over an object or method with your cursor:

image

image

image

Cool new color coded gradient backed tabs:

image

Pinning of tabs is still supported:

image

 

Check out more info on the Visual Studio Blog
http://blogs.msdn.com/b/visualstudio/archive/2010/07/20/solution-navigator-blog-post.aspx

Download the latest version of the Productivity Power Tools
http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef



About the author

David Sandor is a Software Architect working in Chicago, IL.  My development focuses around the Microsoft Stack including Azure, AppFabric, Silverlight, WPF, .NET Framework, and various mobile devices including iOS (iPhone/iTouch), Android, Windows Mobile and Windows Phone 7.

Month List

Sign in