Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -355,3 +355,4 @@ Client/Properties/ServiceDependencies/TryMudBlazor - Web Deploy/
# Rider idea folder
.idea/
*.DS_Store
/src/TryMudBlazor.Server/wwwroot/client
2 changes: 1 addition & 1 deletion src/TryMudBlazor.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void Main(string[] args)

var version = GetVersion();
var cacheBusting = $"v{version.Major}.{version.Minor}.{version.Build}";
app.MapFallbackToFile("index.html")
app.MapFallbackToFile("client/index.html")
.CacheOutput(policy => policy.SetVaryByQuery("cachebust", cacheBusting));

app.Run();
Expand Down
14 changes: 13 additions & 1 deletion src/TryMudBlazor.Server/TryMudBlazor.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<Nullable>enable</Nullable>
Expand All @@ -19,4 +19,16 @@
<ProjectReference Include="..\MudBlazor.Examples.Data\MudBlazor.Examples.Data.csproj" />
</ItemGroup>

<!-- Copy the wwwroot output from TryMudBlazor.Client into this project's wwwroot/client directory -->
<ItemGroup>
<ClientWwwRootFiles Include="..\TryMudBlazor.Client\wwwroot\**\*" />
</ItemGroup>

<Target Name="CopyClientWwwRoot" AfterTargets="Build">
<Copy
SourceFiles="@(ClientWwwRootFiles)"
DestinationFiles="@(ClientWwwRootFiles->'$(ProjectDir)wwwroot\client\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true" />
</Target>

</Project>
Loading