cezarypiatek / MappingGenerator

:arrows_counterclockwise: "AutoMapper" like, Roslyn based, code fix provider that allows to generate mapping code in design time.
https://marketplace.visualstudio.com/items?itemName=54748ff9-45fc-43c2-8ec5-cf7912bc3b84.mappinggenerator
MIT License
1.03k stars 120 forks source link

when class only one prop not working #84

Closed pedoc closed 5 years ago

pedoc commented 5 years ago

sample code

public class Person
        {
            public int Age { get; set; }
            public string Name { get; set; }

            public Person(int age)
            {
            }
        }

but

 public Person(int age,string name)
            {
            }

it's working

env: vs 2019 preview 3 win10 1903

cezarypiatek commented 5 years ago

@pedoc here's a version with a fix for that issue, would you mind to test it? Any feedback is welcome.

https://ci.appveyor.com/api/buildjobs/85h1mcdvbmxv4xaw/artifacts/MappingGenerator%2FMappingGenerator%2FMappingGenerator.Vsix%2Fbin%2FRelease%2FMappingGenerator.vsix

pedoc commented 5 years ago

@cezarypiatek yes,it'working. thanks

cezarypiatek commented 5 years ago

Thanks. Fixed by #86