Closed cocowalla closed 5 years ago
Hi
Could you provide your code of MyDTO
and MyEntity
classes?
Sorry, I had meant to mention, the issue is present even with the most trivial classes:
public class Test
{
public static class Mapper
{
public static Dto Map(Entity entity)
}
}
public class Entity
{
public Guid? Id { get; set; }
}
public class Dto
{
public Guid? Id { get; set; }
}
But! I just noticed that the issue only presents if I have a stub without parentheses. So, this causes the error:
public static Dto Map(Entity entity)
Whereas it does work if I add the brackets first:
public static Dto Map(Entity entity)
{
}
@cocowalla Here's a version with fixed issue. Would you mind to test it and tell me if everything is working as expected? https://ci.appveyor.com/api/buildjobs/4o5lo4e0ga2a7uy1/artifacts/MappingGenerator%2FMappingGenerator%2FMappingGenerator.Vsix%2Fbin%2FRelease%2FMappingGenerator.vsix
@cezarypiatek excellent, it works as expected 😄
Thanks for testing.
I've just installed this extension, but get an error when opening the Visual Studio "Quick Actions" menu, before I've even hit "Generate mapping code". Stack trace:
I'm on Visual Studio 2017, version 15.9.4.
Before opening the Quick Actions menu, I've typed this stub: