locked
Error while updating EDMX file. RRS feed

  • Question

  • User131044065 posted

    compiling transformatin: Metadata file '%VS140ComnTools%..\IDE\EntityFramework.dll' could not be found <o:p></o:p>

    Friday, December 1, 2017 7:52 AM

All replies

  • User1120430333 posted

    http://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetentityframework

    You can post to the above forum.

    Monday, December 4, 2017 1:46 AM
  • User-832373396 posted

    Hi Naresh,

    <g class="gr_ gr_31 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" id="31" data-gr-id="31">Apparently</g> when reinstalling Visual Studio to a different drive <g class="gr_ gr_33 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" id="33" data-gr-id="33">the </g>%VS120COMNTOOLS%<g class="gr_ gr_33 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" id="33" data-gr-id="33"> environment</g> variable is not updated correctly and points to the folder on the drive where VS was originally installed. The template for generating DDL SQL is using <g class="gr_ gr_36 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" id="36" data-gr-id="36">the </g>%VS120COMNTOOLS%<g class="gr_ gr_36 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" id="36" data-gr-id="36"> environment</g> variable to find assemblies it needs to generate the code. Since the variable is pointing to a folder that no longer contains the necessary files the T4 template transformation fails.

    Troubleshooting:

    • Open the developer command prompt for VS2013
    • set the variable manually to point to the correct location (e.g.

      set VS120COMNTOOLS="D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\")

    • start VS from the command prompt by executing devenv
    • verify if things now work

    (Note that if you follow the above steps to set the variable it will only work for VS instances started from this command prompt.)

    If the above works go to the computer properties (e.g. in Win 8/Win 8.1 type "This PC" in the search window), right click on the icon and select "Properties", go to the "Advanced" tab and click the "Environment Variables" button, then in the "System variables" window find the VS120COMNTOOLS variable, double click (or click the "Edit" button) and fix the variable so that it points to the right folder.

    Don't forget the last backslash after Tools... C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools <---- will not work, but... C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ <--- will work From this 

    and if still not working, please check this 

    1. Check your install location. I installed VS to the other location D:\ than default C:\ so I got the error.
    2. modify "Environment Variables" to your location, for me it means changing C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ to D:\Microsoft Visual Studio 12.0\Common7\Tools.
    3. DON'T Forget to add a \ to the end of <g class="gr_ gr_152 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="152" data-gr-id="152">word</g>.

    From this.

    Hope it is helpful to you :)

    With regards, Angelina Jolie

    Tuesday, December 5, 2017 10:30 AM