dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.09k stars 1.17k forks source link

Net Core 6: Microsoft Fakes and WPF Issue #9359

Open vsfeedback opened 4 months ago

vsfeedback commented 4 months ago

This issue has been moved from a ticket on Developer Community.


Hello,

I'm in the progress of migrating our WPF from .Net 4.7.2 to .Net Core 6 I run into issues with our test projects that reference WPF and use Microsoft Fakes Please see my demo repo here: https://github.com/RoyRosenberg/msFakesWPF

Basically, the problem can be described like the following:

When trying to compile, I got the 20 errors related to Fakes generation, one of them is:

Error CS7069 Reference to type 'DependencyObject' claims it is defined in 'WindowsBase', but it could not be found

image.png

Please help me find out the problem Thanks in advance, Roy


Original Comments

Feedback Bot on 8/24/2022, 11:35 AM:

(private comment, text removed)

Dolly Wang [MSFT] on 8/24/2022, 00:23 PM:

(private comment, text removed)

Roy Rosenberg on 8/24/2022, 00:59 PM:

(private comment, text removed)

Roy Rosenberg on 8/24/2022, 01:35 PM:

(private comment, text removed)

Dolly Wang [MSFT] on 8/24/2022, 00:25 PM:

(private comment, text removed)

Dolly Wang [MSFT] on 8/24/2022, 02:07 PM:

(private comment, text removed)

Roy Rosenberg on 8/24/2022, 09:57 PM:

(private comment, text removed)

Feedback Bot on 8/25/2022, 06:36 AM:

(private comment, text removed)

Roy Rosenberg on 8/29/2022, 09:53 AM:

(private comment, text removed)

Roy Rosenberg on 9/2/2022, 00:11 PM:

(private comment, text removed)

Roy Rosenberg on 9/20/2022, 10:42 PM:

(private comment, text removed)

Roy Rosenberg on 11/6/2022, 00:28 PM:

(private comment, text removed)

Feedback Bot on 12/1/2022, 00:25 PM:

(private comment, text removed)

Feedback Bot on 2/7/2023, 05:43 PM:

(private comment, text removed)


Original Solutions

(no solutions)

lindexi commented 4 months ago

@harshit7962 I think this issues may be fixed by https://github.com/dotnet/wpf/pull/7557

himgoyalmicro commented 1 month ago

Is your application working with .Net 8?