I am rebuilding a 2.9 add-in in 3.0. In my Dockpane, I have a button where I would like show the icon FolderOpenState16.png. The code that worked in 2.9 throws an error in 3.0
<Button x:Name="OpenButton" Grid.Column="2" BorderBrush="Transparent" HorizontalAlignment="Right" VerticalAlignment="Center" Width="30" Background="{x:Null}" DockPanel.Dock="Right" Style="{DynamicResource Esri_Button}"
Command="{Binding OpenBrowseDialog}"
CommandParameter="OpenButton">
<Image Source="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/FolderOpenState16.png" HorizontalAlignment="Left" Height="16" VerticalAlignment="Top" Width="16" ToolTip="Browse"/>
</Button>I'm getting the error for the Image Source: "Could not load file or assembly 'ArcGIS.Desktop.Resources, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified."
That assembly does exist in my project, so why is this error occurring?