C
C#2mo ago
jlim

how to host Wpf(.net7.0) in mfc

I wanna execute Wpf app made by dotnet 7.0 not .netframework In mfc app. Is there any materials? I know dotnet7.0 wpf and dotnet framework wpf they are different how to host with mfc
2 Replies
jcotton42
jcotton422mo ago
You want to embed WPF in MFC? … why? Also, you should target .net 8, not 7.
jlim
jlim2mo ago
Yes, the reason why is that my companies main app is mfc and I will host wpf app in the mfc app And mfc is excuted by Visual studio 2008 maybe. My wpf app is executed visual studio 2022 I know .net is included both .net frame work and .net core