Hi LP,
The issue is fixed in the latest version of VS (17.4 I guess).
Net Core 6: Microsoft Fakes and WPF Issue
Hello,
I hope I posted in the correct forum...
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:
- Class Library project with <UseWPF>true</UseWPF>
- The project contains ControlDemo class that inherits from UserControl class
- MSTest project with reference to the class library project
- I added fakes assembly to the class lib. project
When trying to compile, I got the following error
Error CS7069 Reference to type 'DependencyObject' claims it is defined in 'WindowsBase', but it could not be found
The error is duplicated 20 times, so I got 20 errors in the error list window:
Please help me find out the problem
Thanks in advance,
Roy
1 answer
Sort by: Most helpful
-
Roy Rosenberg 1 Reputation point
2022-11-18T22:35:55.253+00:00