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

后端 未结 8 2082
再見小時候
再見小時候 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:59

    Had this issue with a recent install of VS2017 Enterprise after already having this functionality working in Professional.
    The solution for me was to:

    1. Open the Visual Studio Installer program and "Modify" my Enterprise installation.
    2. Select "ASP.NET and web development" under the Web & Cloud section
    3. Click "Modify" in bottom right

    It's probably worth noting that I already had EF6 installed and did not need to re-install it to get this to work.

    After completing those steps and firing up Visual Studio, the error went away and I was able to generate my classes successfully. Hope this helps!

提交回复
热议问题