Implement incremental builds for Prepare targets.
This commit is contained in:
parent
7b7251222f
commit
cddf8fa985
1 changed files with 20 additions and 3 deletions
|
@ -159,23 +159,40 @@
|
||||||
DestinationDirectory="%(_DownloadAndExtractItem.ExtractDestintation)" />
|
DestinationDirectory="%(_DownloadAndExtractItem.ExtractDestintation)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="SetupRestorePackagesInputsOutputs">
|
||||||
|
<ItemGroup>
|
||||||
|
<RestorePackagesInput Include="$(RepoRoot)/src/**/project.json" />
|
||||||
|
<RestorePackagesInput Include="$(RepoRoot)/tools/**/project.json" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Target>
|
||||||
|
|
||||||
<Target Name="RestorePackages"
|
<Target Name="RestorePackages"
|
||||||
DependsOnTargets="Init">
|
DependsOnTargets="SetupRestorePackagesInputsOutputs;Init"
|
||||||
|
Inputs="@(RestorePackagesInput)"
|
||||||
|
Outputs="@(RestorePackagesInput->'%(RelativeDir)/project.lock.json')">
|
||||||
|
|
||||||
<DotNetRestore WorkingDirectory="$(RepoRoot)/src" ToolPath="$(DotNetPath)" />
|
<DotNetRestore WorkingDirectory="$(RepoRoot)/src" ToolPath="$(DotNetPath)" />
|
||||||
<DotNetRestore WorkingDirectory="$(RepoRoot)/tools" ToolPath="$(DotNetPath)" />
|
<DotNetRestore WorkingDirectory="$(RepoRoot)/tools" ToolPath="$(DotNetPath)" />
|
||||||
|
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="ZipTemplates">
|
<Target Name="SetupZipTemplatesInputsOutputs">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<_DotNetNewFolder>$(RepoRoot)/src/dotnet/commands/dotnet-new</_DotNetNewFolder>
|
<_DotNetNewFolder>$(RepoRoot)/src/dotnet/commands/dotnet-new</_DotNetNewFolder>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<DotNetNewArchive Include="$([System.IO.Directory]::GetDirectories($(_DotNetNewFolder)))" />
|
<DotNetNewArchive Include="$([System.IO.Directory]::GetDirectories($(_DotNetNewFolder)))" />
|
||||||
|
|
||||||
|
<ZipTemplatesInput Include="$(_DotNetNewFolder)/**" Exclude="$(_DotNetNewFolder)/*.zip" />
|
||||||
|
<ZipTemplatesOutput Include="@(DotNetNewArchive->'%(RelativeDir)/$([System.IO.Path]::GetFileName('%(DotNetNewArchive.FullPath)')).zip')" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="ZipTemplates"
|
||||||
|
DependsOnTargets="SetupZipTemplatesInputsOutputs"
|
||||||
|
Inputs="@(ZipTemplatesInput)"
|
||||||
|
Outputs="@(ZipTemplatesOutput)">
|
||||||
|
|
||||||
<ArchiveDirectory InputDirectory="%(DotNetNewArchive.FullPath)"
|
<ArchiveDirectory InputDirectory="%(DotNetNewArchive.FullPath)"
|
||||||
FileName="$([System.IO.Path]::GetFileName(%(DotNetNewArchive.FullPath)))"
|
FileName="$([System.IO.Path]::GetFileName(%(DotNetNewArchive.FullPath)))"
|
||||||
OutputDirectory="%(DotNetNewArchive.RelativeDir)"
|
OutputDirectory="%(DotNetNewArchive.RelativeDir)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue