I created a new WPF C# desktop application in VS 2022 using .net core 6. For some reason the image shows in the designer but when the application is running it does not show. If I create a WPF C# desktop application in VS 2022 using .net framework 4.8 the Image does work.
<code><Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<StackPanel>
<Image Source=".Logo.jpg" Width="300" Height="300" />
<Rectangle Width="50" Height="50" Fill="Red"/>
</StackPanel>
</Window>
</code>
<code><Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<StackPanel>
<Image Source=".Logo.jpg" Width="300" Height="300" />
<Rectangle Width="50" Height="50" Fill="Red"/>
</StackPanel>
</Window>
</code>
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<StackPanel>
<Image Source=".Logo.jpg" Width="300" Height="300" />
<Rectangle Width="50" Height="50" Fill="Red"/>
</StackPanel>
</Window>