Useful Tip: Solution for known issue with Merged Dictionaries in App.xaml (VS 2010 RTM)

יום שישי, אפריל 23, 2010

At last days many .Net developers upgraded their Visual Studio to RTM 2010. There are some “Known Issues” in this release.After painful upgrade we discovered problem in our WPF project: Some Dynamic Resources from Merged Dictionaries that referenced in App.xaml stopped working (although this code worked without any problems in Beta-2).We found some workaround: Add some style without specific key for unused element in Resource Dictionary and this will trigger WPF to load resources from Merged Dictionaries. Example: <Application x:Class="SomeNamespace.App"              xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">       <Application.Resources>             <ResourceDictionary>                   <ResourceDictionary.MergedDictionaries>                         <ResourceDictionary Source="/SomeNamespace;Component/Styles.xaml"/>                         <ResourceDictionary Source="/SomeNamespace;Component/Brushes.xaml"/>                   </ResourceDictionary.MergedDictionaries>                                 <Style TargetType="{x:Type Line}"/>...

Frustrating Bug in MS Visual Studio 2005

יום שישי, דצמבר 14, 2007

In last days I experience some annoying and frustrating bug in MS Visual Studio 2005 (at work and at home). I write some project in VB.Net, this project is included in solution that contains another ten projects, that written in VB and C#. In the middle of work with IDE I receive error message: "Microsoft(R) Visual Basic Compiler has encountered a problem and needs to close. We are sorry for the inconvenience", and IDE crushes. I made quick search in MSDN and found that this is known bug and MS provides some fixes (patches). For some reason I can't handle...
4 comments