|
|
@@ -1,5 +1,4 @@
|
|
|
-<Project>
|
|
|
- <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
|
|
|
+<Project Sdk="Microsoft.NET.Sdk">
|
|
|
<PropertyGroup>
|
|
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
|
<NuspecFile>Microsoft.AspNetCore.Blazor.Templates.nuspec</NuspecFile>
|
|
|
@@ -16,18 +15,31 @@
|
|
|
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
- <Target Name="TransformTemplateConfigs" BeforeTargets="CoreBuild" DependsOnTargets="SetTemplateJsonSymbolReplacements">
|
|
|
- <!--
|
|
|
- For each template, copy its '.template.config.src' directory to '.template.config',
|
|
|
- removing any earlier output at that location
|
|
|
- -->
|
|
|
+ <ItemGroup>
|
|
|
+ <UpToDateCheckInput Include="content\**\.template.config.src\**\*.*" />
|
|
|
+ </ItemGroup>
|
|
|
+
|
|
|
+ <Target Name="PrepareFileLists" AfterTargets="PrepareForBuild">
|
|
|
<ItemGroup>
|
|
|
<_TemplateConfigMainFile Include="content\**\.template.config.src\template.json" />
|
|
|
- <_TemplateConfigDir Include="@(_TemplateConfigMainFile->'$([System.IO.Path]::GetDirectoryName('%(_TemplateConfigMainFile.FullPath)'))')" />
|
|
|
+ <_TemplateConfigDir Include="@(_TemplateConfigMainFile->'$([System.IO.Path]::GetDirectoryName('%(_TemplateConfigMainFile.FullPath)'))')" />
|
|
|
<_TemplateConfigFileToCopy Include="%(_TemplateConfigDir.Identity)\**\*.*">
|
|
|
<DestDir>$([System.IO.Path]::GetDirectoryName('%(_TemplateConfigDir.Identity)'))\.template.config\</DestDir>
|
|
|
</_TemplateConfigFileToCopy>
|
|
|
</ItemGroup>
|
|
|
+ </Target>
|
|
|
+
|
|
|
+ <Target
|
|
|
+ Name="TransformTemplateConfigs"
|
|
|
+ BeforeTargets="CoreBuild"
|
|
|
+ DependsOnTargets="SetTemplateJsonSymbolReplacements"
|
|
|
+ Inputs="@(_TemplateConfigFileToCopy)"
|
|
|
+ Outputs="@(_TemplateConfigFileToCopy->'%(DestDir)%(FileName)%(Extension)')">
|
|
|
+
|
|
|
+ <!--
|
|
|
+ For each template, copy its '.template.config.src' directory to '.template.config',
|
|
|
+ removing any earlier output at that location
|
|
|
+ -->
|
|
|
<RemoveDir Directories="%(_TemplateConfigFileToCopy.DestDir)" />
|
|
|
<Copy SourceFiles="%(_TemplateConfigFileToCopy.Identity)" DestinationFolder="%(_TemplateConfigFileToCopy.DestDir)" />
|
|
|
|
|
|
@@ -49,8 +61,4 @@
|
|
|
<Output TaskParameter="OutputPath" ItemName="Content" />
|
|
|
</GenerateFileFromTemplate>
|
|
|
</Target>
|
|
|
- <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
|
|
- <!-- Override SDK targets. This project does not produce a .dll. -->
|
|
|
- <Target Name="CoreCompile" />
|
|
|
- <Target Name="GetTargetPath" />
|
|
|
</Project>
|