Use separate filenames for the two different reference arg files

This commit is contained in:
Steve Sanderson 2018-05-01 10:02:24 +01:00
parent e5d78f8886
commit 370edda02d
2 changed files with 10 additions and 7 deletions

View File

@ -37,7 +37,7 @@ namespace Microsoft.AspNetCore.Blazor.Build.Cli.Commands
command.OnExecute(() => command.OnExecute(() =>
{ {
if (string.IsNullOrEmpty(mainAssemblyPath.Value) || if (string.IsNullOrEmpty(mainAssemblyPath.Value) ||
!clientPage.HasValue() || !referencesFile.HasValue() || !outputPath.HasValue()) !clientPage.HasValue() || !outputPath.HasValue())
{ {
command.ShowHelp(command.Name); command.ShowHelp(command.Name);
return 1; return 1;

View File

@ -236,8 +236,11 @@
<!-- /obj/<<configuration>>/<<targetframework>>/blazor/inputs.index.cache --> <!-- /obj/<<configuration>>/<<targetframework>>/blazor/inputs.index.cache -->
<BlazorBuildIndexInputsCache>$(BlazorIntermediateOutputPath)inputs.index.cache</BlazorBuildIndexInputsCache> <BlazorBuildIndexInputsCache>$(BlazorIntermediateOutputPath)inputs.index.cache</BlazorBuildIndexInputsCache>
<!-- /obj/<<configuration>>/<<targetframework>>/blazor/embedded.resources.txt --> <!-- /obj/<<configuration>>/<<targetframework>>/blazor/resolve-dependencies.txt -->
<BlazorReferencesConfigFilePath>$(BlazorIntermediateOutputPath)references.txt</BlazorReferencesConfigFilePath> <BlazorResolveDependenciesFilePath>$(BlazorIntermediateOutputPath)resolve-dependencies.txt</BlazorResolveDependenciesFilePath>
<!-- /obj/<<configuration>>/<<targetframework>>/blazor/indexhtml-references.txt -->
<BlazorIndexHtmlReferencesFilePath>$(BlazorIntermediateOutputPath)indexhtml-references.txt</BlazorIndexHtmlReferencesFilePath>
<!-- /obj/<<configuration>>/<<targetframework>>/blazor/embedded.resources.txt --> <!-- /obj/<<configuration>>/<<targetframework>>/blazor/embedded.resources.txt -->
<BlazorEmbeddedResourcesConfigFilePath>$(BlazorIntermediateOutputPath)embedded.resources.txt</BlazorEmbeddedResourcesConfigFilePath> <BlazorEmbeddedResourcesConfigFilePath>$(BlazorIntermediateOutputPath)embedded.resources.txt</BlazorEmbeddedResourcesConfigFilePath>
@ -514,12 +517,12 @@
> >
<PropertyGroup> <PropertyGroup>
<_ReferencesArg Condition="'@(_BlazorDependencyInput)' != ''">--references &quot;$(BlazorReferencesConfigFilePath)&quot;</_ReferencesArg> <_ReferencesArg Condition="'@(_BlazorDependencyInput)' != ''">--references &quot;$(BlazorResolveDependenciesFilePath)&quot;</_ReferencesArg>
<_BclParameter>--base-class-library &quot;$(MonoBaseClassLibraryPath)&quot; --base-class-library &quot;$(MonoBaseClassLibraryFacadesPath)&quot;</_BclParameter> <_BclParameter>--base-class-library &quot;$(MonoBaseClassLibraryPath)&quot; --base-class-library &quot;$(MonoBaseClassLibraryFacadesPath)&quot;</_BclParameter>
</PropertyGroup> </PropertyGroup>
<WriteLinesToFile <WriteLinesToFile
File="$(BlazorReferencesConfigFilePath)" File="$(BlazorResolveDependenciesFilePath)"
Lines="@(_BlazorDependencyInput)" Lines="@(_BlazorDependencyInput)"
Overwrite="true" /> Overwrite="true" />
@ -607,12 +610,12 @@
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
<_LinkerEnabledFlag Condition="'$(_BlazorShouldLinkApplicationAssemblies)' != ''">--linker-enabled</_LinkerEnabledFlag> <_LinkerEnabledFlag Condition="'$(_BlazorShouldLinkApplicationAssemblies)' != ''">--linker-enabled</_LinkerEnabledFlag>
<_ReferencesArg Condition="'@(_AppReferences)' != ''">--references &quot;$(BlazorReferencesConfigFilePath)&quot;</_ReferencesArg> <_ReferencesArg Condition="'@(_AppReferences)' != ''">--references &quot;$(BlazorIndexHtmlReferencesFilePath)&quot;</_ReferencesArg>
<_EmbeddedResourcesArg Condition="'@(_UnlinkedAppReferencesPaths)' != ''">--embedded-resources &quot;$(BlazorEmbeddedResourcesConfigFilePath)&quot;</_EmbeddedResourcesArg> <_EmbeddedResourcesArg Condition="'@(_UnlinkedAppReferencesPaths)' != ''">--embedded-resources &quot;$(BlazorEmbeddedResourcesConfigFilePath)&quot;</_EmbeddedResourcesArg>
</PropertyGroup> </PropertyGroup>
<WriteLinesToFile <WriteLinesToFile
File="$(BlazorReferencesConfigFilePath)" File="$(BlazorIndexHtmlReferencesFilePath)"
Lines="@(_AppReferences)" Lines="@(_AppReferences)"
Overwrite="true" /> Overwrite="true" />