-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(T4.BuildTools): evaluate T4Transform/T4Preprocess Metadata
- Loading branch information
Showing
15 changed files
with
305 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...ng.Build.Tests/TestCases/PreprocessTemplateFromRelativePath/Nested/Template/Folder/foo.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<#@ template language="C#" #> | ||
Hello World |
14 changes: 14 additions & 0 deletions
14
...ts/TestCases/PreprocessTemplateFromRelativePath/PreprocessTemplateFromRelativePath.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="$(TemplatingTargetsPath)\T4.BuildTools.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<T4Preprocess Include="./Nested/Template/Folder/foo.tt" /> | ||
<PackageReference Include="System.CodeDom" Version="5.0.0" /> | ||
</ItemGroup> | ||
|
||
<Import Project="$(TemplatingTargetsPath)\T4.BuildTools.targets" /> | ||
</Project> |
2 changes: 2 additions & 0 deletions
2
Mono.TextTemplating.Build.Tests/TestCases/PreprocessTemplateMetadata/OutputDirectory.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<#@ template language="C#" #> | ||
Hello Item Metadata OutputDirectory |
2 changes: 2 additions & 0 deletions
2
...ting.Build.Tests/TestCases/PreprocessTemplateMetadata/OutputDirectoryAndOutputFileName.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<#@ template language="C#" #> | ||
Hello Item Metadata OutputDirectory And OutputDFileName |
2 changes: 2 additions & 0 deletions
2
Mono.TextTemplating.Build.Tests/TestCases/PreprocessTemplateMetadata/OutputFileName.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<#@ template language="C#" #> | ||
Hello Item Metadata OutputDFileName |
23 changes: 23 additions & 0 deletions
23
...lating.Build.Tests/TestCases/PreprocessTemplateMetadata/PreprocessTemplateMetadata.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="$(TemplatingTargetsPath)\T4.BuildTools.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<T4Preprocess Include="OutputDirectory.tt"> | ||
<OutputDirectory>Demo/Output</OutputDirectory> | ||
</T4Preprocess> | ||
<T4Preprocess Include="OutputFileName.tt"> | ||
<OutputFileName>Demo/OutputFileNameTest.cs</OutputFileName> | ||
</T4Preprocess> | ||
<T4Preprocess Include="OutputDirectoryAndOutputFileName.tt"> | ||
<OutputDirectory>Demo/Output</OutputDirectory> | ||
<OutputFileName>OutputDirectoryAndFileNameTest.cs</OutputFileName> | ||
</T4Preprocess> | ||
<PackageReference Include="System.CodeDom" Version="5.0.0" /> | ||
</ItemGroup> | ||
|
||
<Import Project="$(TemplatingTargetsPath)\T4.BuildTools.targets" /> | ||
</Project> |
14 changes: 14 additions & 0 deletions
14
...ld.Tests/TestCases/PreprocessTemplateWithExtension/PreprocessTemplateWithExtension.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="$(TemplatingTargetsPath)\T4.BuildTools.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<T4Preprocess Include="foo.tt" /> | ||
<PackageReference Include="System.CodeDom" Version="5.0.0" /> | ||
</ItemGroup> | ||
|
||
<Import Project="$(TemplatingTargetsPath)\T4.BuildTools.targets" /> | ||
</Project> |
3 changes: 3 additions & 0 deletions
3
Mono.TextTemplating.Build.Tests/TestCases/PreprocessTemplateWithExtension/foo.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<#@ template language="C#" #> | ||
<#@ output extension=".g.cs" #> | ||
Hello World |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.