-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathReqnroll.Templates.DotNet.csproj
48 lines (41 loc) · 2.07 KB
/
Reqnroll.Templates.DotNet.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageType>Template</PackageType>
<PackageId>Reqnroll.Templates.DotNet</PackageId>
<Title>Reqnroll Templates for dotnet new</Title>
<Description>Templates for projects using different test execution frameworks and templates for Reqnroll files.</Description>
<PackageTags>reqnroll;bdd;gherkin;cucumber;dotnet-new;templates</PackageTags>
<TargetFramework>netstandard2.0</TargetFramework>
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>content</ContentTargetFolders>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<NoPackageAnalysis>true</NoPackageAnalysis>
<IncludeSymbols>false</IncludeSymbols>
<!-- Because templates trigger NU5128, because they need a targetframework, but don't have files in the lib folder for it-->
<NoDefaultExcludes>true</NoDefaultExcludes>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MSBuild.AdditionalTasks" Version="0.1.36" />
</ItemGroup>
<ItemGroup>
<MetaTemplate Include="templates\**\*" Exclude="templates\**\bin\**;templates\**\obj\**" />
<Compile Remove="**\*" />
<None Include="$(SolutionDir)reqnroll-icon.png" Pack="true" PackagePath="images" />
<None Include="templates\reqnroll-project\Template.csproj" />
<None Include="templates\reqnroll-project\.template.config\**" />
<None Include="templates\reqnroll-config\.template.config\**" />
<None Include="templates\reqnroll-feature\.template.config\**" />
</ItemGroup>
<Target Name="PopulateMetaTemplate" AfterTargets="CoreCompile">
<ReplaceTextInFileTask
InputFile="%(MetaTemplate.FullPath)"
OutputFile="$(OutDir)\templates\%(MetaTemplate.RecursiveDir)\%(MetaTemplate.FileName)%(MetaTemplate.Extension)"
TextToReplace="$$$NuGetPackageVersion$$$"
TextToReplaceWith="$(PackageVersion)"
WriteOnlyWhenChanged="true" />
<ItemGroup>
<Content Include="$(OutDir)\templates\**\*" PackagePath="content" />
</ItemGroup>
</Target>
</Project>