Skip to content

Commit 1cefb9c

Browse files
committed
refactor: update project references and solution structure for improved organization and reliability
1 parent ac420bf commit 1cefb9c

14 files changed

Lines changed: 69 additions & 9 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,8 @@ For working examples, see the Hybrid sample projects:
12171217

12181218
The repository includes several sample projects demonstrating different Blazor hosting models and scenarios. **As of February 2, 2026**, all Blazor MVVM samples have been refactored to use a centralized **`Blazing.Mvvm.Sample.Shared`** project, demonstrating best practices for code sharing across different hosting models.
12191219

1220+
Sample solution files include their local project-reference closure so they can be opened and built reliably in Visual Studio while still validating the current repository source.
1221+
12201222
#### Blazor Hosting Model Samples
12211223

12221224
All of the following samples now reference the shared `Blazing.Mvvm.Sample.Shared` library, which contains common components, ViewModels, pages, and services:

samples/Blazing.Mvvm.AnalyzerTest/Blazing.Mvvm.AnalyzerTest.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111

1212
<ItemGroup>
1313
<ProjectReference Include="..\..\src\Libraries\Blazing.Mvvm\Blazing.Mvvm.csproj" />
14-
<ProjectReference Include="..\..\src\Libraries\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" />
1514
<ProjectReference Include="..\..\src\Libraries\Blazing.Mvvm.Analyzers\Blazing.Mvvm.Analyzers.csproj"
1615
OutputItemType="Analyzer"
1716
ReferenceOutputAssembly="false" />
1817
</ItemGroup>
1918

2019
<ItemGroup>
2120
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" />
22-
<PackageReference Include="CommunityToolkit.Mvvm" />
2321
</ItemGroup>
2422

2523
</Project>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
<Solution>
2+
<Folder Name="/src/">
3+
<Project Path="..\..\src\Libraries\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" />
4+
<Project Path="..\..\src\Libraries\Blazing.Mvvm\Blazing.Mvvm.csproj" />
5+
<Project Path="..\..\src\Libraries\Blazing.Mvvm.Analyzers\Blazing.Mvvm.Analyzers.csproj" />
6+
</Folder>
27
<Project Path="Blazing.Mvvm.AnalyzerTest.csproj" />
38
</Solution>

samples/Blazing.Mvvm.Sample.HybridMaui/Blazing.Mvvm.Sample.HybridMaui.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,9 @@
7676
<PackageReference Include="Microsoft.Maui.Controls" />
7777
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" />
7878
<PackageReference Include="Microsoft.Extensions.Logging.Debug" />
79-
<PackageReference Include="CommunityToolkit.Mvvm" />
8079
</ItemGroup>
8180

8281
<ItemGroup>
83-
<ProjectReference Include="..\..\src\Libraries\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" />
8482
<ProjectReference Include="..\..\src\Libraries\Blazing.Mvvm\Blazing.Mvvm.csproj" />
8583
<ProjectReference Include="..\libs\Blazing.Mvvm.Sample.Shared\Blazing.Mvvm.Sample.Shared.csproj" />
8684
</ItemGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
<Solution>
2+
<Folder Name="/libs/">
3+
<Project Path="..\libs\Blazing.Buttons\Blazing.Buttons.csproj" />
4+
<Project Path="..\libs\Blazing.Mvvm.Sample.Shared\Blazing.Mvvm.Sample.Shared.csproj" />
5+
<Project Path="..\libs\Blazor.Common\Blazing.Common.csproj" />
6+
</Folder>
7+
<Folder Name="/src/">
8+
<Project Path="..\..\src\Libraries\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" />
9+
<Project Path="..\..\src\Libraries\Blazing.Mvvm\Blazing.Mvvm.csproj" />
10+
</Folder>
211
<Project Path="Blazing.Mvvm.Sample.HybridMaui.csproj" />
312
</Solution>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
<Solution>
2+
<Folder Name="/libs/">
3+
<Project Path="..\libs\Blazing.Buttons\Blazing.Buttons.csproj" />
4+
<Project Path="..\libs\Blazing.Mvvm.Sample.Shared\Blazing.Mvvm.Sample.Shared.csproj" />
5+
<Project Path="..\libs\Blazor.Common\Blazing.Common.csproj" />
6+
</Folder>
7+
<Folder Name="/src/">
8+
<Project Path="..\..\src\Libraries\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" />
9+
<Project Path="..\..\src\Libraries\Blazing.Mvvm\Blazing.Mvvm.csproj" />
10+
</Folder>
211
<Project Path="Blazing.Mvvm.Sample.Server.csproj" />
312
</Solution>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
<Solution>
2+
<Folder Name="/libs/">
3+
<Project Path="..\libs\Blazing.Buttons\Blazing.Buttons.csproj" />
4+
<Project Path="..\libs\Blazing.Mvvm.Sample.Shared\Blazing.Mvvm.Sample.Shared.csproj" />
5+
<Project Path="..\libs\Blazor.Common\Blazing.Common.csproj" />
6+
</Folder>
7+
<Folder Name="/src/">
8+
<Project Path="..\..\src\Libraries\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" />
9+
<Project Path="..\..\src\Libraries\Blazing.Mvvm\Blazing.Mvvm.csproj" />
10+
</Folder>
211
<Project Path="Blazing.Mvvm.Sample.Wasm.csproj" />
312
</Solution>

samples/Blazing.Mvvm.Sample.WebApp/Blazing.Mvvm.Sample.WebApp.slnx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
<Platform Name="x64" />
55
<Platform Name="x86" />
66
</Configurations>
7+
<Folder Name="/libs/">
8+
<Project Path="..\libs\Blazing.Buttons\Blazing.Buttons.csproj" />
9+
<Project Path="..\libs\Blazing.Mvvm.Sample.Shared\Blazing.Mvvm.Sample.Shared.csproj" />
10+
<Project Path="..\libs\Blazor.Common\Blazing.Common.csproj" />
11+
</Folder>
12+
<Folder Name="/src/">
13+
<Project Path="..\..\src\Libraries\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" />
14+
<Project Path="..\..\src\Libraries\Blazing.Mvvm\Blazing.Mvvm.csproj" />
15+
</Folder>
716
<Project Path="Blazing.Mvvm.Sample.WebApp.Client/Blazing.Mvvm.Sample.WebApp.Client.csproj" />
8-
<Project Path="Blazing.Mvvm.Sample.WebApp/Blazing.Mvvm.Sample.WebApp.csproj" />
17+
<Project Path="Blazing.Mvvm.Sample.WebApp/Blazing.Mvvm.Sample.WebApp.csproj" />
918
</Solution>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
<Solution>
2+
<Folder Name="/libs/">
3+
<Project Path="..\libs\Blazing.Buttons\Blazing.Buttons.csproj" />
4+
<Project Path="..\libs\Blazing.Mvvm.Sample.Shared\Blazing.Mvvm.Sample.Shared.csproj" />
5+
<Project Path="..\libs\Blazor.Common\Blazing.Common.csproj" />
6+
</Folder>
7+
<Folder Name="/src/">
8+
<Project Path="..\..\src\Libraries\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" />
9+
<Project Path="..\..\src\Libraries\Blazing.Mvvm\Blazing.Mvvm.csproj" />
10+
</Folder>
211
<Project Path="Blazing.Mvvm.Security.Wasm.csproj" />
312
</Solution>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
<Solution>
2+
<Folder Name="/libs/">
3+
<Project Path="..\libs\Blazing.Buttons\Blazing.Buttons.csproj" />
4+
<Project Path="..\libs\Blazing.Mvvm.Sample.Shared\Blazing.Mvvm.Sample.Shared.csproj" />
5+
<Project Path="..\libs\Blazor.Common\Blazing.Common.csproj" />
6+
</Folder>
7+
<Folder Name="/src/">
8+
<Project Path="..\..\src\Libraries\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" />
9+
<Project Path="..\..\src\Libraries\Blazing.Mvvm\Blazing.Mvvm.csproj" />
10+
</Folder>
211
<Project Path="Blazing.SubpathHosting.Server.csproj" />
312
</Solution>

0 commit comments

Comments
 (0)