Skip to content

Commit 93e8ea0

Browse files
authored
dotnet7 Compability (#46)
* dotnet7 * MudExtensions Enums namespace and some component page refactoring * Code Show Sections * Fix some warnings and Update MudBlazor Core
1 parent d8a7cd2 commit 93e8ea0

File tree

73 files changed

+1417
-1369
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1417
-1369
lines changed

CodeBeam.MudExtensions/CodeBeam.MudExtensions.csproj

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Razor">
1+
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
55
<Nullable>disable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<Version>6.0.12</Version>
7+
<Version>6.1.0</Version>
88
<Title>CodeBeam.MudBlazor.Extensions</Title>
99
<Authors>CodeBeam</Authors>
1010
<Company>CodeBeam</Company>
11-
<Description>MudBlazor extension components from contributors.</Description>
11+
<Description>MudBlazor extension components from contributors. Includes 20+ components and utilities.</Description>
1212
<Copyright>CodeBeam OpenSource MIT</Copyright>
1313
<PackageIcon>Mud_Secondary.png</PackageIcon>
1414
<PackageProjectUrl>https://codebeam-mudextensions.pages.dev/</PackageProjectUrl>
@@ -20,10 +20,17 @@
2020
<SupportedPlatform Include="browser" />
2121
</ItemGroup>
2222

23-
<ItemGroup>
24-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.9" />
25-
<PackageReference Include="MudBlazor" Version="6.0.17" />
23+
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
24+
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.10" />
25+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.10" />
26+
<PackageReference Include="MudBlazor" Version="6.1.2" />
2627
</ItemGroup>
28+
29+
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
30+
<PackageReference Include="Microsoft.AspNetCore.Components" Version="7.0.0.*" />
31+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.0.*" />
32+
<PackageReference Include="MudBlazor" Version="6.1.2" />
33+
</ItemGroup>
2734

2835
<!--Uncomment it on development and debug to generate min.css on rebuild-->
2936
<!--This sections causes to fail auto deployment to CloudFlare-->

CodeBeam.MudExtensions/Components/DateWheelPicker/MudDateWheelPicker.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@namespace MudExtensions
22
@inherits MudBaseInput<DateTime?>
3+
@using MudExtensions.Enums
34

45
<CascadingValue Name="SubscribeToParentForm" Value="false" IsFixed="true">
56
<div>

CodeBeam.MudExtensions/Components/DateWheelPicker/MudDateWheelPicker.razor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
using System;
22
using System.Data;
33
using System.Threading.Tasks;
4-
using CodeBeam.MudExtensions.Utilities;
4+
using MudExtensions.Utilities;
55
using Microsoft.AspNetCore.Components;
66
using Microsoft.AspNetCore.Components.Web;
77
using Microsoft.Extensions.DependencyInjection;
88
using MudBlazor;
99
using MudBlazor.Utilities;
10+
using MudExtensions.Enums;
1011
using static MudBlazor.CategoryTypes;
1112

1213
namespace MudExtensions

CodeBeam.MudExtensions/Components/FontPicker/MudFontPicker.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CodeBeam.MudExtensions.Utilities;
1+
using MudExtensions.Utilities;
22
using Microsoft.AspNetCore.Components;
33
using Microsoft.AspNetCore.Components.Web;
44
using MudBlazor;

CodeBeam.MudExtensions/Components/Gallery/MudGallery.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CodeBeam.MudExtensions.Utilities;
1+
using MudExtensions.Utilities;
22
using Microsoft.AspNetCore.Components;
33
using MudBlazor;
44
using MudBlazor.Extensions;

CodeBeam.MudExtensions/Components/Loading/MudLoading.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@namespace MudExtensions
22
@inherits MudComponentBase
3+
@using MudExtensions.Enums
34

45

56
@if (Loading == true)

CodeBeam.MudExtensions/Components/Loading/MudLoading.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.AspNetCore.Components.Web;
55
using MudBlazor;
66
using MudBlazor.Utilities;
7+
using MudExtensions.Enums;
78

89
namespace MudExtensions
910
{

CodeBeam.MudExtensions/Components/LoadingButton/MudLoadingButton.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@namespace MudExtensions
22
@inherits MudBaseButton
3+
@using MudExtensions.Enums
34

45
@if (ButtonVariant == ButtonVariant.Button)
56
{

CodeBeam.MudExtensions/Components/LoadingButton/MudLoadingButton.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.AspNetCore.Components.Web;
55
using MudBlazor;
66
using MudBlazor.Utilities;
7+
using MudExtensions.Enums;
78

89
namespace MudExtensions
910
{

CodeBeam.MudExtensions/Components/Page/MudPage.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using MudBlazor;
1010
using MudBlazor.Extensions;
1111
using MudBlazor.Utilities;
12+
using MudExtensions.Enums;
1213

1314
namespace MudExtensions
1415
{

0 commit comments

Comments
 (0)