From 370edda02d6c51320717d078f34eb43833228639 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Tue, 1 May 2018 10:02:24 +0100 Subject: [PATCH] Use separate filenames for the two different reference arg files --- .../Cli/Commands/BuildIndexHtmlCommand.cs | 2 +- .../targets/Blazor.MonoRuntime.targets | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Microsoft.AspNetCore.Blazor.Build/Cli/Commands/BuildIndexHtmlCommand.cs b/src/Microsoft.AspNetCore.Blazor.Build/Cli/Commands/BuildIndexHtmlCommand.cs index 2d8efaafc6..490c3c0e46 100644 --- a/src/Microsoft.AspNetCore.Blazor.Build/Cli/Commands/BuildIndexHtmlCommand.cs +++ b/src/Microsoft.AspNetCore.Blazor.Build/Cli/Commands/BuildIndexHtmlCommand.cs @@ -37,7 +37,7 @@ namespace Microsoft.AspNetCore.Blazor.Build.Cli.Commands command.OnExecute(() => { if (string.IsNullOrEmpty(mainAssemblyPath.Value) || - !clientPage.HasValue() || !referencesFile.HasValue() || !outputPath.HasValue()) + !clientPage.HasValue() || !outputPath.HasValue()) { command.ShowHelp(command.Name); return 1; diff --git a/src/Microsoft.AspNetCore.Blazor.Build/targets/Blazor.MonoRuntime.targets b/src/Microsoft.AspNetCore.Blazor.Build/targets/Blazor.MonoRuntime.targets index 7061f7cfde..07cee54163 100644 --- a/src/Microsoft.AspNetCore.Blazor.Build/targets/Blazor.MonoRuntime.targets +++ b/src/Microsoft.AspNetCore.Blazor.Build/targets/Blazor.MonoRuntime.targets @@ -236,8 +236,11 @@ $(BlazorIntermediateOutputPath)inputs.index.cache - - $(BlazorIntermediateOutputPath)references.txt + + $(BlazorIntermediateOutputPath)resolve-dependencies.txt + + + $(BlazorIntermediateOutputPath)indexhtml-references.txt $(BlazorIntermediateOutputPath)embedded.resources.txt @@ -514,12 +517,12 @@ > - <_ReferencesArg Condition="'@(_BlazorDependencyInput)' != ''">--references "$(BlazorReferencesConfigFilePath)" + <_ReferencesArg Condition="'@(_BlazorDependencyInput)' != ''">--references "$(BlazorResolveDependenciesFilePath)" <_BclParameter>--base-class-library "$(MonoBaseClassLibraryPath)" --base-class-library "$(MonoBaseClassLibraryFacadesPath)" @@ -607,12 +610,12 @@ <_LinkerEnabledFlag Condition="'$(_BlazorShouldLinkApplicationAssemblies)' != ''">--linker-enabled - <_ReferencesArg Condition="'@(_AppReferences)' != ''">--references "$(BlazorReferencesConfigFilePath)" + <_ReferencesArg Condition="'@(_AppReferences)' != ''">--references "$(BlazorIndexHtmlReferencesFilePath)" <_EmbeddedResourcesArg Condition="'@(_UnlinkedAppReferencesPaths)' != ''">--embedded-resources "$(BlazorEmbeddedResourcesConfigFilePath)"