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
It seems that using Mapperly together with Microsoft Community Toolkit is not possible, unless somebody can give me some good advice.
I have a number of uses of MSCT like this:
[ObservableProperty]
private ArtifactTypeEnum m_ArtifactType;
The aim is to get a property named
public ArtifactTypeEnum ArtifactType { get ... set ... }
generated by the Toolkit generator in a partial class.
When I Map this property using Mapperly, it is not found.
I get this error
RMG012 Property ArtifactType on source type ...Clients.Models.ArtifactMdl was not found
The setup of the mapping is like this
public static partial ArtifactDto ToDto(this ArtifactMdl src);
I expect the mapper to find the property and map it, even though it is found in
a partial class generated by some generator.
My guess is that the two generators need to run in a different sequence.
Are there any workarounds to this behaviour?
Mapperly Version: 2.7.0
.NET Version: 6.0
Target Framework: .net6.0
IDE: Visual Studio v17.6.4
OS: Win 10
The text was updated successfully, but these errors were encountered:
It seems that using Mapperly together with Microsoft Community Toolkit is not possible, unless somebody can give me some good advice.
I have a number of uses of MSCT like this:
[ObservableProperty]
private ArtifactTypeEnum m_ArtifactType;
The aim is to get a property named
public ArtifactTypeEnum ArtifactType { get ... set ... }
generated by the Toolkit generator in a partial class.
When I Map this property using Mapperly, it is not found.
I get this error
RMG012 Property ArtifactType on source type ...Clients.Models.ArtifactMdl was not found
The setup of the mapping is like this
public static partial ArtifactDto ToDto(this ArtifactMdl src);
I expect the mapper to find the property and map it, even though it is found in
a partial class generated by some generator.
My guess is that the two generators need to run in a different sequence.
Are there any workarounds to this behaviour?
The text was updated successfully, but these errors were encountered: