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
The type or namespace name 'Utils' does not exist in the namespace 'xxxxxxx'
Same for Mapster.TypeAdapter<T1,T2>
To fix, please render
using Mapster;
using Mapster.Utils;
and non-qualified Enum<SomeType>.Parse()... even if -p is requested.
Thanks
The text was updated successfully, but these errors were encountered:
jvmlet
changed the title
dotnet mapper ... -p generates code that can be compiled.
dotnet mapper ... -p generates code that can't be compiled.
Nov 26, 2023
We have POCOs with the same type name in different namespaces.
Adding
-p
fixes the ambiguous reference, but generates enum mapping likethat fails to compile with error
Same for
Mapster.TypeAdapter<T1,T2>
To fix, please render
and non-qualified
Enum<SomeType>.Parse()...
even if -p is requested.Thanks
The text was updated successfully, but these errors were encountered: