|
1 |
| -<Project> |
2 |
| - <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
3 | 2 | <PropertyGroup>
|
4 | 3 | <TargetFramework>netstandard2.0</TargetFramework>
|
5 | 4 | <NuspecFile>Microsoft.AspNetCore.Blazor.Templates.nuspec</NuspecFile>
|
|
16 | 15 | <IsProjectReferenceProvider>false</IsProjectReferenceProvider>
|
17 | 16 | </PropertyGroup>
|
18 | 17 |
|
19 |
| - <Target Name="TransformTemplateConfigs" BeforeTargets="CoreBuild" DependsOnTargets="SetTemplateJsonSymbolReplacements"> |
20 |
| - <!-- |
21 |
| - For each template, copy its '.template.config.src' directory to '.template.config', |
22 |
| - removing any earlier output at that location |
23 |
| - --> |
| 18 | + <ItemGroup> |
| 19 | + <UpToDateCheckInput Include="content\**\.template.config.src\**\*.*" /> |
| 20 | + </ItemGroup> |
| 21 | + |
| 22 | + <Target Name="PrepareFileLists" AfterTargets="PrepareForBuild"> |
24 | 23 | <ItemGroup>
|
25 | 24 | <_TemplateConfigMainFile Include="content\**\.template.config.src\template.json" />
|
26 |
| - <_TemplateConfigDir Include="@(_TemplateConfigMainFile->'$([System.IO.Path]::GetDirectoryName('%(_TemplateConfigMainFile.FullPath)'))')" /> |
| 25 | + <_TemplateConfigDir Include="@(_TemplateConfigMainFile->'$([System.IO.Path]::GetDirectoryName('%(_TemplateConfigMainFile.FullPath)'))')" /> |
27 | 26 | <_TemplateConfigFileToCopy Include="%(_TemplateConfigDir.Identity)\**\*.*">
|
28 | 27 | <DestDir>$([System.IO.Path]::GetDirectoryName('%(_TemplateConfigDir.Identity)'))\.template.config\</DestDir>
|
29 | 28 | </_TemplateConfigFileToCopy>
|
30 | 29 | </ItemGroup>
|
| 30 | + </Target> |
| 31 | + |
| 32 | + <Target |
| 33 | + Name="TransformTemplateConfigs" |
| 34 | + BeforeTargets="CoreBuild" |
| 35 | + DependsOnTargets="SetTemplateJsonSymbolReplacements" |
| 36 | + Inputs="@(_TemplateConfigFileToCopy)" |
| 37 | + Outputs="@(_TemplateConfigFileToCopy->'%(DestDir)%(FileName)%(Extension)')"> |
| 38 | + |
| 39 | + <!-- |
| 40 | + For each template, copy its '.template.config.src' directory to '.template.config', |
| 41 | + removing any earlier output at that location |
| 42 | + --> |
31 | 43 | <RemoveDir Directories="%(_TemplateConfigFileToCopy.DestDir)" />
|
32 | 44 | <Copy SourceFiles="%(_TemplateConfigFileToCopy.Identity)" DestinationFolder="%(_TemplateConfigFileToCopy.DestDir)" />
|
33 | 45 |
|
|
49 | 61 | <Output TaskParameter="OutputPath" ItemName="Content" />
|
50 | 62 | </GenerateFileFromTemplate>
|
51 | 63 | </Target>
|
52 |
| - <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> |
53 |
| - <!-- Override SDK targets. This project does not produce a .dll. --> |
54 |
| - <Target Name="CoreCompile" /> |
55 |
| - <Target Name="GetTargetPath" /> |
56 | 64 | </Project>
|
0 commit comments