Code: Select all
Encountered the following errors while processing the template 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\Devart SSDLToPostgreSql.tt:
Line 0, Column 0: 'An exception was thrown while trying to compile the transformation code. The following Exception was thrown:
System.IO.FileNotFoundException: Could not find file 'C:\Windows\system32\Devart.Data.PostgreSql.Entity, Version=7.12.1357.6, Culture=neutral, PublicKeyToken=09af7300eec23701'.
File name: 'C:\Windows\system32\Devart.Data.PostgreSql.Entity, Version=7.12.1357.6, Culture=neutral, PublicKeyToken=09af7300eec23701'
...
In the template file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\Devart SSDLToPostgreSql.ttinclude" I replaced
Code: Select all
<#@ assembly name="System.Core" #>
<#@ assembly name="Devart.Data.PostgreSql.Entity, Version=7.12.1357.6, Culture=neutral, PublicKeyToken=09af7300eec23701" #>
Code: Select all
<#@ assembly name="System.Core" #>
<#@ assembly name="C:\Program Files (x86)\Devart\dotConnect\PostgreSQL\Entity\EF6\Devart.Data.PostgreSql.Entity.EF6.dll" #>
<#@ assembly name="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\EntityFramework.dll" #>
<#@ assembly name="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Microsoft.Data.Entity.Design.dll" #>
Code: Select all
<#@ assembly name="System.Core" #>
Code: Select all
<#@ assembly name="System.Core" #>
<#@ assembly name="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\EntityFramework.dll" #>
<#@ assembly name="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Microsoft.Data.Entity.Design.dll" #>
This problem is also present when using VS 2015, but in that case only the driver name had to be replaced because the template files properly include the EntityFramework dlls as seen below:
Code: Select all
<#@ assembly name="System.Core" #>
<#@ assembly name="Devart.Data.PostgreSql.Entity, Version=7.12.1357.6, Culture=neutral, PublicKeyToken=09af7300eec23701" #>
<#@ assembly name="%VS140COMNTOOLS%..\IDE\EntityFramework.dll" #>
<#@ assembly name="%VS140COMNTOOLS%..\IDE\Microsoft.Data.Entity.Design.dll" #>