fix(net6): Ensure wwwroot folder is included in the dist output
net6.0 removes content from the `Content` item group, and moves them to `StaticWebAsset`, which is now added in the Asset parameter of ShellTask.
This commit is contained in:
Родитель
e0b5f23bfc
Коммит
94de0371ad
|
@ -217,7 +217,7 @@
|
|||
EmccLinkOptimization="$(WasmShellEmccLinkOptimization)"
|
||||
EmccLinkOptimizationLevel="$(WasmShellEmccLinkOptimizationLevel)"
|
||||
NinjaAdditionalParameters="$(WasmShellNinjaAdditionalParameters)"
|
||||
Assets="@(Content)"
|
||||
Assets="@(Content);@(StaticWebAsset)"
|
||||
ContentExtensionsToExclude="$(WasmShellContentExtensionsToExclude)"
|
||||
ReferencePath="@(_UnoWasmBootstrapAssembliesForReferenceCopyLocalPaths)"
|
||||
RuntimeHostConfigurationOption="@(RuntimeHostConfigurationOption)"
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
<Error Condition="!exists('$(WasmShellOutputPackagePath)\AdditionalContent\%(_AdditionalFile1.Identity)')" Text="%(_AdditionalFile1.Identity) does not exist in $(WasmShellOutputPackagePath)" />
|
||||
<Error Condition="exists('$(WasmShellOutputPackagePath)\AdditionalContent\SomeContent04.txt')" Text="AdditionalContent/SomeContent04.tx should not exist in $(WasmShellOutputPackagePath)" />
|
||||
<Error Condition="!exists('$(WasmShellOutputPackagePath)\..\web.config')" Text="web.config should exist in $(WasmShellOutputPackagePath)\.." />
|
||||
|
||||
<Error Condition="exists('$(WasmShellOutputDistPath)\AdditionalContent\%(_AdditionalFile1.Identity)')" Text="%(_AdditionalFile1.Identity) should not exist in $(WasmShellOutputDistPath)" />
|
||||
<Error Condition="!exists('$(WasmShellOutputDistPath)\AdditionalContent\SomeContent03.txt')" Text="AdditionalContent/SomeContent03.txt does not exist in $(WasmShellOutputDistPath)" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче