I have two projects This is the main WPF project configuration where I want to display the image from a referenced project. The main project is a .NET Core WPF with the name CH07.RemoteBinaryResourceDemo.csproj and the referenced project .NET Framework Class Library CH07.ResourceLibrary.csproj Can anyone please help
This is my CH07.RemoteBinaryResourceDemo.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\CH07.ResourceLibrary\CH07.ResourceLibrary.csproj" />
</ItemGroup>
</Project>
I have another project the referenced project .NET Framework Class Library, with the file structure
+CH07.ResourceLibrary
+--+Images
+--+image1.jpg
In my CH07.RemoteBinaryResourceDemo/MainWindow.xaml
<Image Width="150"
Margin="8"
Source="pack://application:,,,/CH07.ResourceLibrary;component/Images/image1.jpg"/>
This doesn't work. I've tried everything I know to build, clean build, rebuild doesn't work.