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
Version Used: Visual Studio 17.10.0 Preview 4.0, Visual Studio 17.10.0 Preview 3.0, .NET 8
Steps to Reproduce:
using AutoMapper;
var autoMapperCfg = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Car, Vehicle>().ReverseMap();
});
var autoMapper = autoMapperCfg.CreateMapper();
dynamic myCar = new Car();
Vehicle myVehicle = new();
var map = autoMapper.Map<Vehicle, Car>(Activator.CreateInstance(myCar.GetType(), myVehicle)); // <-- CS1503
public class Vehicle { }
public class Car : Vehicle { }
Diagnostic Id: CS1503 cannot convert from 'object' to 'Vehicle'
Expected Behavior: Worked fine until Visual Studio 17.10.0 Preview 3.0.
The text was updated successfully, but these errors were encountered:
Version Used: Visual Studio 17.10.0 Preview 4.0, Visual Studio 17.10.0 Preview 3.0, .NET 8
Steps to Reproduce:
Diagnostic Id: CS1503 cannot convert from 'object' to 'Vehicle'
Expected Behavior: Worked fine until Visual Studio 17.10.0 Preview 3.0.
The text was updated successfully, but these errors were encountered: