Add check for `wwwroot/` unix path separator (#1018)
This commit is contained in:
parent
61d6d71e8c
commit
dcd9cf7481
|
|
@ -20,7 +20,7 @@
|
||||||
<ResolvedAssembliesToPublish Remove="@(ResolvedAssembliesToPublish)" />
|
<ResolvedAssembliesToPublish Remove="@(ResolvedAssembliesToPublish)" />
|
||||||
|
|
||||||
<!-- Move wwwroot files to output root -->
|
<!-- Move wwwroot files to output root -->
|
||||||
<ContentWithTargetPath Update="@(ContentWithTargetPath)" Condition="$([System.String]::new(%(TargetPath)).StartsWith('wwwroot\'))">
|
<ContentWithTargetPath Update="@(ContentWithTargetPath)" Condition="$([System.String]::new(%(TargetPath)).StartsWith('wwwroot\')) OR $([System.String]::new(%(TargetPath)).StartsWith('wwwroot/'))">
|
||||||
<TargetPath>$(BlazorPublishDistDir)$([System.String]::new(%(TargetPath)).Substring(8))</TargetPath>
|
<TargetPath>$(BlazorPublishDistDir)$([System.String]::new(%(TargetPath)).Substring(8))</TargetPath>
|
||||||
</ContentWithTargetPath>
|
</ContentWithTargetPath>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue