Background
I got simple CRUD app using Entity Framework 6 created in Visual Studio 2017 Enterprise. Schema / models / DB stuff were created using *.edmx
Problem
After cloning reposiroty to different computer (or removing all of auto-generated *.cs
files) while trying to build / rebuild I got following errors for every *.tt
file:
Failed to resolve include text for file:[PATH TO APP DIRECTORY HERE]\EF6.Utility.CS.ttinclude.
Loading the include file 'EF6.Utility.CS.ttinclude' returned a null or empty string. The transformation will not be run.
Manual re-generation of files works fine (via opening popup menu on *.tt
files and clicking Run Custom Tool
)
This file exists in
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF6.Utility.CS.ttinclude
but I have absolutely no idea why VS is looking for it inside project path.
Is it a bug / problem with VS / EF6 configuration?
I've tried:
- re-installation of Entity Framework Tools
- adding 'ASP.NET and web development'
None of these helped :(
Similar thread:
Hardcoding correct path in auto-generated *.tt
files IMO is not a proper solution