From 432518ab2ff5531739324912c8b1ac71dcacc576 Mon Sep 17 00:00:00 2001 From: MichaelD! Date: Sat, 27 Dec 2014 11:23:55 -0500 Subject: [PATCH 1/3] - Added .targets file to source. (Issue #4) - Updated targets to emit References.tt (non-hintpath references). (Issue #3) - Added .ps1 files to tools path in .nuspec - Removed Custom Tool from .tt files (Issue #2) --- .../AssemblyReferencesTT.csproj | 1 + AssemblyReferencesTT/Package.nuspec | 58 +++++++++---------- .../build/AssemblyReferencesTT.targets | 49 ++++++++++++++++ AssemblyReferencesTT/content/References.tt | 1 + AssemblyReferencesTT/tools/install.ps1 | 3 + 5 files changed, 81 insertions(+), 31 deletions(-) create mode 100644 AssemblyReferencesTT/build/AssemblyReferencesTT.targets create mode 100644 AssemblyReferencesTT/content/References.tt diff --git a/AssemblyReferencesTT/AssemblyReferencesTT.csproj b/AssemblyReferencesTT/AssemblyReferencesTT.csproj index 70c7245..e34da6c 100644 --- a/AssemblyReferencesTT/AssemblyReferencesTT.csproj +++ b/AssemblyReferencesTT/AssemblyReferencesTT.csproj @@ -53,6 +53,7 @@ AssemblyReferences.txt + diff --git a/AssemblyReferencesTT/Package.nuspec b/AssemblyReferencesTT/Package.nuspec index b5d3140..03eba48 100644 --- a/AssemblyReferencesTT/Package.nuspec +++ b/AssemblyReferencesTT/Package.nuspec @@ -1,32 +1,28 @@ - - - - AssemblyReferencesTT - 1.0.12 - AssemblyReferences.tt - Kern Herskind Nightingale - Herskind Limited - - Build target for generating a T4 file with a list of assembly directives based on the projects references. References with a hint path and solution references will be listed the AssemblyReferences.tt file. This file can then be included by other T4 files. - - - - - Build target for generating a T4 file with a list of assembly directives based on the projects references. - - en-GB - https://github.com/herskinduk/AssemblyReferencesTT - https://nuget.org/Content/Images/packageDefaultIcon-50x50.png - false - http://opensource.org/licenses/MIT - Copyright 2014 - - - - t4 text template transformation toolkit assembly project reference references csproj tt hintpath hint path - - - - - + + + + AssemblyReferencesTT + 1.0.13 + AssemblyReferences.tt + Kern Herskind Nightingale + Herskind Limited + http://opensource.org/licenses/MIT + https://github.com/herskinduk/AssemblyReferencesTT + https://nuget.org/Content/Images/packageDefaultIcon-50x50.png + false + Build target for generating a T4 file with a list of assembly directives based on the projects references. References with a hint path and solution references will be listed the AssemblyReferences.tt file. This file can then be included by other T4 files. + Build target for generating a T4 file with a list of assembly directives based on the projects references. + + Copyright 2014 + en-GB + t4 text template transformation toolkit assembly project reference references csproj tt hintpath hint path + + + + + + + + + \ No newline at end of file diff --git a/AssemblyReferencesTT/build/AssemblyReferencesTT.targets b/AssemblyReferencesTT/build/AssemblyReferencesTT.targets new file mode 100644 index 0000000..02ea05a --- /dev/null +++ b/AssemblyReferencesTT/build/AssemblyReferencesTT.targets @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AssemblyReferencesTT/content/References.tt b/AssemblyReferencesTT/content/References.tt new file mode 100644 index 0000000..1f6120b --- /dev/null +++ b/AssemblyReferencesTT/content/References.tt @@ -0,0 +1 @@ +<# /* AUTOGENERATED BY MSBUILD and Kern Herskind Nightingale */ #> diff --git a/AssemblyReferencesTT/tools/install.ps1 b/AssemblyReferencesTT/tools/install.ps1 index c175998..b3fda1e 100644 --- a/AssemblyReferencesTT/tools/install.ps1 +++ b/AssemblyReferencesTT/tools/install.ps1 @@ -6,3 +6,6 @@ param($installPath, $toolsPath, $package, $project) # $toolsPath is the path to the tools directory in the folder where the package is installed. # $package is a reference to the package object. # $project is a reference to the project the package was installed to. + +$project.ProjectItems.Item("AssemblyReferences.tt").Properties.Item("CustomTool").Value = "" +$project.ProjectItems.Item("References.tt").Properties.Item("CustomTool").Value = "" \ No newline at end of file From 44205123cab5943d15f0d3ddcd90c664b574fcaa Mon Sep 17 00:00:00 2001 From: MichaelD! Date: Fri, 2 Jan 2015 08:16:03 -0500 Subject: [PATCH 2/3] Updating $(ProjectDir) for HintPath Assemblies --- AssemblyReferencesTT/build/AssemblyReferencesTT.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AssemblyReferencesTT/build/AssemblyReferencesTT.targets b/AssemblyReferencesTT/build/AssemblyReferencesTT.targets index 02ea05a..0a8b9a6 100644 --- a/AssemblyReferencesTT/build/AssemblyReferencesTT.targets +++ b/AssemblyReferencesTT/build/AssemblyReferencesTT.targets @@ -19,7 +19,7 @@ From 6277ed7ff453980755f84fbdc8068eb4bff4ce42 Mon Sep 17 00:00:00 2001 From: MichaelD! Date: Fri, 2 Jan 2015 08:19:46 -0500 Subject: [PATCH 3/3] Adding $, doh. --- AssemblyReferencesTT/build/AssemblyReferencesTT.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AssemblyReferencesTT/build/AssemblyReferencesTT.targets b/AssemblyReferencesTT/build/AssemblyReferencesTT.targets index 0a8b9a6..361018e 100644 --- a/AssemblyReferencesTT/build/AssemblyReferencesTT.targets +++ b/AssemblyReferencesTT/build/AssemblyReferencesTT.targets @@ -19,7 +19,7 @@