我通过程序包管理器控制台从NuGet安装了AutoMapper 3.1.0-ci1021
PM> Install-Package AutoMapper -Pre
我有两个完全相同的课程:
public class FilterGroup1
{
public string Action { get; set; }
public object Criteria { get; set; }
}
和
public class FilterGroup2
{
public string Action { get; set; }
public object Criteria { get; set; }
}
我创建(至少我尝试创建)对象的地图:
Mapper.CreateMap<FilterGroup1, FilterGroup2>();
当我运行我的应用时,我收到以下错误:
System.TypeInitilizationException
'AutoMapper.Mappers.EnumMapper'的类型初始值设定项引发了异常 此平台上不支持此类型INullableConverterFactory
我正在使用VS2012..NET 4.5。有没有人知道什么是错的?
提前致谢。