Info
Version: | 1.0.30 |
Author(s): | Herb Stahl |
Last Update: | Wednesday, June 3, 2015 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/ghstahl/Pingo.TextTransform.ForVS2013 |
NuGet Url: | https://www.nuget.org/packages/Pingo.TextTransform.ForVS2013 |
Install
Install-Package Pingo.TextTransform.ForVS2013
dotnet add package Pingo.TextTransform.ForVS2013
paket add Pingo.TextTransform.ForVS2013
Pingo.TextTransform.ForVS2013 Download (Unzip the "nupkg" after downloading)
Dependencies
1 package depend on this package.
Modeling SDK for Microsoft Visual Studio 2013
http://www.microsoft.com/en-us/download/details.aspx?id=40754
Microsoft Visual Studio 2013 SDK
http://www.microsoft.com/en-us/download/details.aspx?id=40758
Directory Structure layout requirements:
{ProjectRoot}\projroot.txt - just a file that needs to exist
{ProjectRoot}\CM\BuildVersion.ini - how my versions get set.
All my TT work reads this and produces the necessary files with the right version.
i.e. AssemblyInfo.tt begets AssemblyInfo.cs, {projectName}.tt begets {projectName}.nuspec, etc.
{ProjectRoot}\src\
\src\{solutionname}.sln
\src\.nuget\
\src\{projectfolder(s)}
This will import a target that gives my TT code access to some of the following;
<T4ParameterValues Include="BuildIniFile">
puts the TextTransform requirments in, like
<PropertyGroup>
<TransformOnBuild>true</TransformOnBuild>
<OverwriteReadOnlyOutputFiles>true</OverwriteReadOnlyOutputFiles>
<!-- Other properties can be inserted here -->
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v12.0\TextTemplating\Microsoft.TextTemplating.targets" />
My projects extensively use TT, and this is the easiest way to get them setup correctly without manually editing the files.