Last post Dec 05, 2017 10:30 AM by AngelinaJolie
Dec 01, 2017 07:52 AM|Naresh Kodumuri|LINK
compiling transformatin: Metadata file '%VS140ComnTools%..\IDE\EntityFramework.dll' could not be found
Dec 04, 2017 01:46 AM|DA924|LINK
You can post to the above forum.
Dec 05, 2017 10:30 AM|AngelinaJolie|LINK
Apparently when reinstalling Visual Studio to a different drive the %VS120COMNTOOLS% environment
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 the %VS120COMNTOOLS% environment
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.
set the variable manually to point to the correct location (e.g.
VS120COMNTOOLS="D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\")
VS120COMNTOOLS="D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\"
(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
and if still not working, please check this
Hope it is helpful to you :)
With regards, Angelina Jolie