Merge pull request #10037 from Forgind/create-precomputed-rar-cache
Introduce pre-caching into installer
This commit is contained in:
commit
e8fa33c840
5 changed files with 17 additions and 8 deletions
|
@ -25,7 +25,10 @@
|
||||||
<IsShipping>true</IsShipping>
|
<IsShipping>true</IsShipping>
|
||||||
<CoreSdkTargetFramework>net6.0</CoreSdkTargetFramework>
|
<CoreSdkTargetFramework>net6.0</CoreSdkTargetFramework>
|
||||||
|
|
||||||
<NoWarn>NU5125;NU5105;NU1701</NoWarn>
|
<!-- MSB3243 and MSB3247 fire when attempting to resolve references to the same assembly from different cultures.
|
||||||
|
This is a prevalent problem in building the precomputed assembly reference cache. Limiting the assemblies resolved
|
||||||
|
to those outside the culture folders would work, but that is a nontrivial problem. -->
|
||||||
|
<NoWarn>NU5125;NU5105;NU1701;MSB3243;MSB3247</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(DisableSourceLink)' == 'true'">
|
<PropertyGroup Condition="'$(DisableSourceLink)' == 'true'">
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<RestoreAdditionalProjectSources Condition="'$(TEST_PACKAGES)' != ''">$(RestoreAdditionalProjectSources);$(TEST_PACKAGES)</RestoreAdditionalProjectSources>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<DotNetCliToolReference Include="dotnet-portable" Version="1.0.0" />
|
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||||
<DotNetCliToolReference Include="dotnet-prefercliruntime" Version="1.0.0" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"tools": {
|
"tools": {
|
||||||
"dotnet": "6.0.100-preview.3.21202.5",
|
"dotnet": "6.0.100-preview.5.21228.9",
|
||||||
"runtimes": {
|
"runtimes": {
|
||||||
"dotnet": [
|
"dotnet": [
|
||||||
"$(VSRedistCommonNetCoreSharedFrameworkx6460PackageVersion)"
|
"$(VSRedistCommonNetCoreSharedFrameworkx6460PackageVersion)"
|
||||||
|
|
|
@ -492,6 +492,13 @@
|
||||||
|
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="GeneratePrecomputedRarCache" DependsOnTargets="LayoutTemplates;LayoutManifests;LayoutBundledTools">
|
||||||
|
<ItemGroup>
|
||||||
|
<AssembliesToResolve Include="$(RedistLayoutPath)\**\*.dll" Exclude="$(RedistLayoutPath)\**\native\**\*.dll" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ResolveAssemblyReference AssemblyFiles="@(AssembliesToResolve)" Silent="false" AssemblyInformationCacheOutputPath="$(RedistLayoutPath)sdk\$(Version)\SDKPrecomputedAssemblyReferences.cache" SearchPaths="{RawFileName}" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
<Target Name="GenerateLayout"
|
<Target Name="GenerateLayout"
|
||||||
DependsOnTargets="DownloadBundledComponents;
|
DependsOnTargets="DownloadBundledComponents;
|
||||||
CleanLayoutPath;
|
CleanLayoutPath;
|
||||||
|
@ -506,6 +513,7 @@
|
||||||
RetargetTools;
|
RetargetTools;
|
||||||
CrossgenLayout;
|
CrossgenLayout;
|
||||||
LayoutAppHostTemplate;
|
LayoutAppHostTemplate;
|
||||||
|
GeneratePrecomputedRarCache;
|
||||||
SignLayout"
|
SignLayout"
|
||||||
BeforeTargets="AfterBuild">
|
BeforeTargets="AfterBuild">
|
||||||
|
|
||||||
|
|
|
@ -244,7 +244,7 @@
|
||||||
<ResultsStdOutPath>$(ArtifactsLogDir)$(TestProjectName).log</ResultsStdOutPath>
|
<ResultsStdOutPath>$(ArtifactsLogDir)$(TestProjectName).log</ResultsStdOutPath>
|
||||||
|
|
||||||
<TestArgs>-noautoreporters -noRepoInference</TestArgs>
|
<TestArgs>-noautoreporters -noRepoInference</TestArgs>
|
||||||
<TestArgs>$(TestArgs) -dotnetPath $(DotnetToTestPath)\dotnet</TestArgs>
|
<TestArgs>$(TestArgs) -dotnetPath $(DotnetToTestPath)dotnet</TestArgs>
|
||||||
<TestArgs>$(TestArgs) -testExecutionDirectory $(TestExecutionDirectory)</TestArgs>
|
<TestArgs>$(TestArgs) -testExecutionDirectory $(TestExecutionDirectory)</TestArgs>
|
||||||
<TestArgs>$(TestArgs) -testConfigFile "$(MSBuildThisFileDirectory)TestConfig.xml"</TestArgs>
|
<TestArgs>$(TestArgs) -testConfigFile "$(MSBuildThisFileDirectory)TestConfig.xml"</TestArgs>
|
||||||
<TestArgs>$(TestArgs) -xml "$(ResultsXmlPath)"</TestArgs>
|
<TestArgs>$(TestArgs) -xml "$(ResultsXmlPath)"</TestArgs>
|
||||||
|
|
Loading…
Reference in a new issue