Open AmadeusW opened 6 years ago
Deep.
The code is in TipOfTheDayWindow.xaml.cs: new BitmapImage(new Uri("Tips/images/Like.png", UriKind.Relative));
<- this tries to load a file from current running directory. Instead, the BitmapImage needs to load the resource. The images itself should not use the "copy to output directory" property since they will be embedded
I'm getting this when running in normal (non-debug) mode:
@prafullbhosale Any ideas?
yeah that's the issue. The bug is fixed through #50, although this is not the correct fix. Ultimately, we want to consume these images as assembly resources.
When I debug another extension than HotTips, VS crashes with the following message:
System.IO.DirectoryNotFoundException: 'Could not find a part of the path 'C:\src\surround\Surround.VS\bin\Debug\Tips\images\Like.png'.'
where
\Tips\images\Like.png
comes from the HotTips extension, andC:\src\surround
is another VS extension. This leads me to believe that HotTips is trying to access "Like.png" from the arbitrary location of currently active extension, which HotTips is not when I'm not debugging it. The fix will likely entail correctly packaging and using the resources.