I have a Shared Project, which at the moment is a part of a bare bones WPF project. It builds and runs fine. Next I'm trying to add a unit test (MSTest) project to the solution, to test the Shared Project. I've made a reference to the shared project. The shared project has some methods which are used for doing conversion of hex string values to Color data type, that is used in WPF. I've included references to both the WindowsBase and System.Windows assemblies in the unit test project. However, when I try to build the solution now, it fails with the following error:
Error CS0246 The type or namespace name 'Color' could not be found (are you missing a using directive or an assembly reference?) EmptyWPF.Tests D:\Src\CoreShared\CoreShared\Common\ColorHelper.cs 10 Active
I really thought I'd included all references that are needed for building the solution, even with a unit test that references the shared project. I'm not sure why I'm getting this error.
I'm using VS 2019.
