How can I resolve this error: Loading the include file 'EF.Utility.CS.ttinclude' returned a null or empty string

后端 未结 8 2077
再見小時候
再見小時候 2020-12-28 15:07

How can I resolve these errors:

  1. Loading the include file \'EF.Utility.CS.ttinclude\' returned a null or empty string.
  2. Value does not fall within the
8条回答
  •  -上瘾入骨i
    2020-12-28 15:56

    For VS2017, I ended up adding EF6.Utility.CS.ttinclude to model's folder. This resolved my issue with MySql and EF.

    File can be found: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF6.Utility.CS.ttinclude

    UPDATE To avoid doing the above, removing the entities completely then adding back in fixed the issue.

提交回复
热议问题