Sam*_*Sam 5 c# intellisense automapper visual-studio visual-studio-2015
我的机器上有VS2010,12,13,15.除15(Enterprise)之外的所有版本都使用Intellisense for Automapper.
码:
class Program
{
static void Main(string[] args)
{
Mapper.CreateMap<B, C>()
.ForMember(x => x.) // this is where it breaks
}
}
class B
{
public string BB { get; set; }
}
class C
{
public string CC { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
我现在在两台机器上复制了这个:
install-package automapper在之前的VS版本中,只要我点击x => x.目标成员就可以获得Intellisense.
尝试这个:
您安装的 AutoMapper 版本是什么?