The referenced assembly could not be resolved because it has a dependency ...

3 posts, 0 answers
  1. Thomas
    Thomas avatar
    34 posts
    Member since:
    Nov 2011

    Posted 12 Mar 2012 Link to this post

    Hello,

    I get this warning since I have updated from Q3 2011 to Q1 2012.
    Now everything works but how can I get rid of this warning ?

    Warning    3    The referenced assembly "Telerik.WinControls.UI.Design, Version=2012.1.301.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.



    Thank you.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Mar 2012 Link to this post

    Hello,

    It sounds as though you are building your project with .NET Framework 4.0 Client Profile. The system requirement in this case is for a dependancy on an assembly which is not found in the Client Profile and so it is asking you to re-target your project to the .NET Framework 4.0 Full Profile.

    You can change this in the Advanced Compile Options of the Compile tab of the Project properties. You may need to manually add the assembly that is missing once you have changed the target to full profile.
    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 15 Mar 2012 Link to this post

    Hello Thomas,

    Richard's suggestion is correct. Just to mention that you do not need to reference the Telerik.WinControls.UI.Design assembly in your application. This assembly contains control designers and it is not required when running the application. All other Telerik assemblies are .Net 4.0 client profile compliant and by excluding this assembly from your project you can still target .Net 4.0 client profile.
     
    Kind regards,
    Jack
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top