Introduce pre-caching into installer
This commit is contained in:
parent
ee59b48e7b
commit
6eabc3b7d4
3 changed files with 29 additions and 0 deletions
12
TestAssets/TestProjects/RARPreCacheProject/Program.cs
Normal file
12
TestAssets/TestProjects/RARPreCacheProject/Program.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace RARPreCacheProject
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
|
@ -492,6 +492,14 @@
|
|||
|
||||
</Target>
|
||||
|
||||
<Target Name="GeneratePrecomputedRarCache" DependsOnTargets="LayoutTemplates;LayoutManifests;LayoutBundledTools">
|
||||
<ItemGroup>
|
||||
<SampleProjectForResolveAssemblyReferenceCache Include="$(RepoRoot)\TestAssets\TestProjects\RARPreCacheProject\*.*" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(SampleProjectForResolveAssemblyReferenceCache)" DestinationFiles="$(RepoRoot)\artifacts\bin\redist\$(Configuration)\RARPreCacheProject\%(RecursiveDir)%(FileName)%(Extension)" />
|
||||
<Exec Command="$(RepoRoot)\artifacts\bin\redist\$(Configuration)\dotnet\dotnet.exe msbuild $(RepoRoot)\artifacts\bin\redist\$(Configuration)\RARPreCacheProject\RARPreCacheProject.csproj /t:ResolveAssemblyReferences /p:AssemblyInformationCacheOutputPath=$(SdkInternalLayoutPath)sdk\$(Version)\SDKPrecomputedAssemblyReferences.cache" />
|
||||
</Target>
|
||||
|
||||
<Target Name="GenerateLayout"
|
||||
DependsOnTargets="DownloadBundledComponents;
|
||||
CleanLayoutPath;
|
||||
|
@ -506,6 +514,7 @@
|
|||
RetargetTools;
|
||||
CrossgenLayout;
|
||||
LayoutAppHostTemplate;
|
||||
GeneratePrecomputedRarCache;
|
||||
SignLayout"
|
||||
BeforeTargets="AfterBuild">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue