Respondido Productivity tools and Entity Framework conflict

  • Wednesday, October 27, 2010 3:34 PM
     
     

    With Productivity Tools 10.0.10819.19 9 enabled in my Extension Manager, VS2010 Ultimate, I get an error, “The project’s target framework does not contain Entity Framework runtime assemblies” and cannot add a ADO.NET Entity data Model to my SL4 Business Application. As soon as the Productivity Tools is disabled, all works normally. Who needs to know about this??


    Gray Geek

All Replies

  • Thursday, October 28, 2010 3:18 AM
    Moderator
     
     

    Hi Gray,

    Please review the target framework information in the project's property page. Right click your project and select property page then try to set target framwork 3.5 or 4.0 on your project.

    Best regards,

    Alex Liang

    MSDN Subscriber Support in Forum

    If you have any feedback on our support, please contact msdnmg@microsoft.com



    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Friday, October 29, 2010 4:57 PM
     
     

    It is 4.0! I reinstalled both the 4.0 framework andVS2010 Ultimate to no avail. Only disabling the Productivity Power Tools would correct the problem.


    Gray Geek
  • Wednesday, November 03, 2010 2:00 AM
     
     Answered

    I had the same issue. To fix, I changed my framework to 3.5, saved and/or built. Then changed back to 4.0 and saved and/or built. I was able to add a new EF model at this point.

     

    Interesting that I also have Productivity Power Tools. One thing I did out of the ordinary is rename my Solution and solution folder (also deleted my old <Solution>.suo file).

  • Friday, November 05, 2010 2:23 AM
    Moderator
     
     

    Hi Gray,

    I am writting to follow up the post. Does the scarab5's suggestion works for you ?

    Best regards,
    Alex Liang
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Thursday, December 09, 2010 2:37 PM
     
     

    I had this same issue:  Installed Power Productivity tools, then Ria Services and EF 4.0 broke. 

    To resolve, I set the target framework for the web project to 3.5.  Save/rebuilt, then changed it back to 4.0 and all is well.

    Greg

  • Thursday, January 20, 2011 5:25 PM
     
     

    I had the same problem but two of my assemblies were not found

    System.ServiceModel.DomainServices.Hosting
    System.ServiceModel.DomainServices.Server

    I 'browsed' to the GAC_MSIL added them, all fine


    jnc
  • Saturday, September 03, 2011 9:57 AM
     
     
    <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:Calibri; mso-fareast-font-family:Calibri; mso-bidi-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> Changing the framework to 3.5 and 4.0 is the only solution which I found while facing similar situation. It might help you too!
  • Monday, November 07, 2011 9:19 PM
     
     

    Since the Productivity Power Tools are being incorporated into Visual Studio 2011, I logged this bug on Microsoft Connect.  Up vote it if you also have this problem:

    https://connect.microsoft.com/VisualStudio/feedback/details/699671#details