I have two projects that both reference a local project in the same solution named Morris.Moxy, both of these apps are .NET 7.
When I compile my Domain project, Morris.Moxy and Domain both compile okay.
When I compile my Client project, Morris.Moxy gives the error...
Error CS0012 The type 'ValueType' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.Morris.Moxy
Why does it compile okay for Domain but not for Client?
Morris.Moxy is a Roslyn code generator, targeting .Net standard 2.0, and both projects reference it in the same way...
<ProjectReference Include="SomePath\Morris.Moxy.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />