locked
186 Error VisualStudio Item 'ControlName' has multiple framework IDs in its supported framework list

    Question

  • 186 Error VisualStudio Item 'ControlName' has multiple framework IDs in its supported framework list (.NetCore,Version=v4.5;.NetCore,Version=v4.5.1;WindowsPhoneApp,Version=v8.1).  A single control can only support one type of framework.  

    This error message sometimes added to ActivityLog.xml. What does this mean?  I use next declaration in SDKManifest.xml for my controls: 

    <FileList DisplayName="ControlName" MinVSVersion="12.0" MaxPlatformVersion="8.1" AppliesTo="WindowsAppContainer + WindowsXAML + Managed" CopyRedistToSubDirectory="."> ...

    My controls does not support Windows Phone App.

    Friday, July 18, 2014 6:28 AM

All replies

  • I assume that you've written a custom control.  What references are you showing in the control's project?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, July 18, 2014 1:13 PM
    Moderator
  • There are only two references in the control's project: 

    .NET for Windows Store apps (SDK, .NETCore,Version=v4.5.1, C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5.1\, True, 4.5.1.0)

    and Windows 8.1(SDK, Windows,Version=8.1, C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\, True, 8.1.0.0 )

    Friday, July 18, 2014 2:02 PM
  • Any chance you can share the project itself or a another project which shows the problem?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, July 18, 2014 2:20 PM
    Moderator