You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when building there's at least 2 classes of problems:
Referencing a Windows Metadata component directly when targeting .NET 5 or higher is not supported. (my project references some winrt assemblies via cswinrt, and Fakes seems to want to reference the winmds directly which won't work).
Multiple versions of WinRT.Runtime:
1>------ Build started: Project: ActionFX, Configuration: Debug x64 ------
1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2413,5): error MSB3277: Found conflicts between different versions of "WinRT.Runtime" that could not be resolved. [D:\path_to_my_project\Fakes\mwsdknet\f.csproj]
Expected Behavior
can build with Fakes
Version Info
2.2.0
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Description
Looking to use Microsoft Fakes for unit testing, but I can't get it to build.
Need to peel the onion to make Fakes usable.
Isolate your app with shims (unit testing) - Visual Studio (Windows) | Microsoft Learn
Steps To Reproduce
in the fakes config, clear all:
when building there's at least 2 classes of problems:
Expected Behavior
can build with Fakes
Version Info
2.2.0
Additional Context
No response
The text was updated successfully, but these errors were encountered: