I saw in .NET 5.0 that you can publish app in single file which is something I was very keep to test and use for my app. My problem is that after I publish the app using the "Produce single file" option the .exe file generated does not include my resources.
First part is exe app from publish folder Second part is the exe app from build release folder
All the images are svg images with Build Action - Resource I also tried with Build Action - Embedded resource and Copy if newer, but I had no luck.
Any ideas how can I make my svg embedded into my exe file?
The problem was based on BionicCode the path of the ImageSource
I had to change the code from
<RibbonButton x:Name="CoppyPageButton" Label="{x:Static p:Resources.Page_Copy_Button}" LargeImageSource="{svgc:SvgImage Resources/HomeTab/Clipboard/page_copy.svg}"></RibbonButton>
To
<RibbonButton x:Name="CoppyPageButton" Label="{x:Static p:Resources.Page_Copy_Button}" LargeImageSource="{svgc:SvgImage Source='pack://application:,,,/Resources/HomeTab/Clipboard/page_copy.svg'}"></RibbonButton>
Note that in order for the path to work it needed the single quotation marks.