Automapper Intellisense在VS2015中不起作用

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)

我现在在两台机器上复制了这个:

  1. 创建一个控制台项目
  2. 添加Nuget for Automapper的引用 install-package automapper
  3. 写上面的代码

在之前的VS版本中,只要我点击x => x.目标成员就可以获得Intellisense.

Den*_*nov 1

尝试这个:

  1. 在VS2015中更新AutoMapper或删除AutoMapper并安装
  2. 在VS2015中检查:工具->选项->文本编辑器->所有语言->[自动列表成员]和[参数信息]

您安装的 AutoMapper 版本是什么?