I'm moving from Windows 8 and VS2013 to Windows 10 and VS2015. But I ran into a problem where code analysis breaks as soon as it hits a call to Insights from the core PCL project. Doing the same from the Windows Phone project works fine.
There's two different types of errors:
A call to Insights.Identify call triggers the error:
Could not resolve reference to mscorlib, Version=18.104.22.168, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes.
A call to Insights.Report or Insights.Track will generate the above error and also numerous of the same warnings for a lot of rules saying:
CA0001 : An error was encountered while parsing IL for method: '[Where you make the call]', instruction at offset '0x..' with opcode 'Call'.
It was very easy to reproduce by simply creating a Xamarin Forms project, adding insights and enabling Code Analysis. See the attached solution and the xml file with the Code Analysis log. Since this is so easy to reproduce I get the feeling I'm simply missing something here?