Skip to content

Commit

Permalink
[Blazor] Fix condition for including the service worker assets in the…
Browse files Browse the repository at this point in the history
… project (#49076)
  • Loading branch information
javiercn authored Jun 28, 2023
1 parent 22a6b51 commit f0be130
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<NoDefaultLaunchSettingsFile Condition="'$(ExcludeLaunchSettings)' == 'True'">True</NoDefaultLaunchSettingsFile>
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">ComponentsWebAssembly-CSharp.Server</RootNamespace>
<AssemblyName Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">`$(AssemblyName.Replace(' ', '_'))</AssemblyName>
<!--#if UseWebAssembly && PWA -->
<!--#if (UseWebAssembly && PWA) -->
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
<!--#endif -->
</PropertyGroup>
Expand All @@ -25,7 +25,7 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="${MicrosoftAspNetCoreComponentsWebAssemblyServerVersion}" />
</ItemGroup>
<!--#endif -->
<!--#if UseWebAssembly && PWA -->
<!--#if (UseWebAssembly && PWA) -->

<ItemGroup>
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
Expand Down

0 comments on commit f0be130

Please sign in to comment.