Use separate filenames for the two different reference arg files
This commit is contained in:
parent
e5d78f8886
commit
370edda02d
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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 "$(BlazorReferencesConfigFilePath)"</_ReferencesArg>
|
<_ReferencesArg Condition="'@(_BlazorDependencyInput)' != ''">--references "$(BlazorResolveDependenciesFilePath)"</_ReferencesArg>
|
||||||
<_BclParameter>--base-class-library "$(MonoBaseClassLibraryPath)" --base-class-library "$(MonoBaseClassLibraryFacadesPath)"</_BclParameter>
|
<_BclParameter>--base-class-library "$(MonoBaseClassLibraryPath)" --base-class-library "$(MonoBaseClassLibraryFacadesPath)"</_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 "$(BlazorReferencesConfigFilePath)"</_ReferencesArg>
|
<_ReferencesArg Condition="'@(_AppReferences)' != ''">--references "$(BlazorIndexHtmlReferencesFilePath)"</_ReferencesArg>
|
||||||
<_EmbeddedResourcesArg Condition="'@(_UnlinkedAppReferencesPaths)' != ''">--embedded-resources "$(BlazorEmbeddedResourcesConfigFilePath)"</_EmbeddedResourcesArg>
|
<_EmbeddedResourcesArg Condition="'@(_UnlinkedAppReferencesPaths)' != ''">--embedded-resources "$(BlazorEmbeddedResourcesConfigFilePath)"</_EmbeddedResourcesArg>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<WriteLinesToFile
|
<WriteLinesToFile
|
||||||
File="$(BlazorReferencesConfigFilePath)"
|
File="$(BlazorIndexHtmlReferencesFilePath)"
|
||||||
Lines="@(_AppReferences)"
|
Lines="@(_AppReferences)"
|
||||||
Overwrite="true" />
|
Overwrite="true" />
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue