I am trying to automate the build process for a Silverlight 5 CI server using OpenRIA services.
I have a generated file created in the Entity Framework.edmx database from which DomainModel is generated, and as part of the assembly I want to generate entities using the T4 code generator.
Project settings
Changed my .csproj server.
Import
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
and properties
<PropertyGroup> <TransformOnBuild>true</TransformOnBuild> ... <PropertyGroup>
Installed sdk and tools:
Broken assembly
It looks correct, but there is such an error during assembly
5> Transforming template DomainModel\EntityConverters.tt... 5>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TextTemplating\Microsoft.TextTemplating.targets(396,5): error : Failed to resolve include text for file:C:\{path to my project}\DomainModel\EF.Utility.CS.ttinclude. Line=-1, Column=-1 5>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TextTemplating\Microsoft.TextTemplating.targets(396,5): error : Loading the include file 'EF.Utility.CS.ttinclude' returned a null or empty string. The transformation will not be run. . Line=21, Column=4
Suspicious
All .tt files have T4 import
<#@ include file="EF.Utility.CS.ttinclude"#>
I have a suspicion that it targets a local directory, does not even create a directory.
I'm curious why the Microsoft.TextTemplating.targets variable EF.Utility.CS.ttinclude in {path to my project} not in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes , where it really is. Loading the include file 'EF.Utility.CS.ttinclude' returned a null or empty string seems legal according to this path.
Perhaps I missed some settings, imports or a set of paths? How can I change or update the path for this utility?
Associated Q & A has already been verified: