-
Notifications
You must be signed in to change notification settings - Fork 11
/
templatepack.SideWaffle.Template.proj
56 lines (48 loc) · 2.36 KB
/
templatepack.SideWaffle.Template.proj
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
49
50
51
52
53
54
55
56
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TemplatePackPropsFilePath Condition=" '$(TemplatePackPropsFilePath)'=='' ">$(MSBuildThisFileFullPath).props</TemplatePackPropsFilePath>
</PropertyGroup>
<Import Project="$(TemplatePackPropsFilePath)"
Condition=" '$(TemplatePackPropsFilePath)' != '' and Exists('$(TemplatePackPropsFilePath)') " />
<PropertyGroup Label="TemplatePackInfo">
<Authors>Your name here</Authors>
<Description>A description for your template pack</Description>
<Version>1.0.0</Version>
</PropertyGroup>
<PropertyGroup Label="PackageConfiguration">
<TargetFramework>netstandard1.0</TargetFramework>
<PackageType>Template</PackageType>
<TemplateSourceRoot>$(MSBuildThisFileDirectory)</TemplateSourceRoot>
</PropertyGroup>
<ItemGroup>
<ExcludeFromPackage Include="$(TemplateSourceRoot)**/bin/**/*" />
<ExcludeFromPackage Include="$(TemplateSourceRoot)**/obj/**/*" />
<ExcludeFromPackage Include="$(TemplateSourceRoot)**/*.user" />
<ExcludeFromPackage Include="$(TemplateSourceRoot)**/*.suo" />
<ExcludeFromPackage Include="$(TemplateSourceRoot)**/.vs/**/*" />
<ExcludeFromPackage Include="$(TemplateSourceRoot)**/.git/**/*" />
<ExcludeFromPackage Include="$(TemplateSourceRoot)**/packages/**/*" />
<TemplateFiles Include="$(TemplateSourceRoot)/**/*"
Exclude="@(ExcludeFromPackage)" />
</ItemGroup>
<PropertyGroup Label="BuildConfiguration">
<NoBuild>True</NoBuild>
<IncludeBuildOutput>False</IncludeBuildOutput>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<DisableImplicitFrameworkReferences>True</DisableImplicitFrameworkReferences>
<PackProjectInputFile>$(MSBuildProjectFullPath)</PackProjectInputFile>
<PackageOutputPath>bin/$(Configuration)/templates/</PackageOutputPath>
</PropertyGroup>
<ItemGroup>
<Content Include="@(TemplateFiles)"
Exclude="@(ExcludeFromPackage)"
PackagePath="Content/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<Target Name="GetNuGetPath" Outputs="@(NuGetPackOutput)">
<Message Text="NuGetPackOutput: [@(NuGetPackOutput)]" Importance="high"/>
</Target>
<Target Name="DebugInfo" BeforeTargets="Build;Pack">
<Message Text="Inner:TemplateSourceRoot: [$(TemplateSourceRoot)]" Importance="high"/>
</Target>
<!-- created with SideWaffle -->
</Project>