Skip to content

Commit

Permalink
add dotnet 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Peugnet committed Nov 19, 2024
1 parent 2be0c93 commit 80b3915
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 75 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest

env:
PUBLISH_FOLDER: samples/BlazorWebAssembly/bin/Release/net8.0/publish/wwwroot
PUBLISH_FOLDER: samples/BlazorWebAssembly/bin/Release/net9.0/publish/wwwroot

name: Build and Deploy Job
steps:
Expand All @@ -19,11 +19,11 @@ jobs:

- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
dotnet-version: '9.x'

- name: Dotnet Publish
run:
dotnet publish --configuration Release -f net8.0
dotnet publish --configuration Release -f net9.0

- name: Change base-tag in index.html to repo name
run: sed -i 's/<base href="\/" \/>/<base href="\/${{ env.REPO_NAME }}\/" \/>/g' $GITHUB_WORKSPACE/$PUBLISH_FOLDER/index.html
Expand Down
20 changes: 10 additions & 10 deletions BlazorCalendar/BlazorCalendar.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFrameworks>net6.0; net7.0; net8.0</TargetFrameworks>
<TargetFrameworks>net7.0; net8.0;net9.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Yearly, monthly and weekly calendar Blazor Component. For use with .NET 6.0 or higher Blazor applications</Description>
<Copyright>Copyright 2023</Copyright>
<Description>Yearly, monthly and weekly calendar Blazor Component. For use with .NET 7.0 or higher Blazor applications</Description>
<Copyright>Copyright 2024</Copyright>
<PackageProjectUrl>https://github.com/tossnet/Blazor-Calendar</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://github.com/tossnet/Blazor-Calendar</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>blazor, calendar, schedule, component</PackageTags>
<PackageReleaseNotes>https://github.com/tossnet/Blazor-Calendar#release-notes</PackageReleaseNotes>
<Version>2.6.7</Version>
<Version>2.7.0</Version>
<Authors>Christophe Peugnet</Authors>
<DebugType>embedded</DebugType>
</PropertyGroup>
Expand All @@ -26,16 +26,16 @@
<SupportedPlatform Include="browser" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.25" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.14" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.20" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.11" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions BlazorCalendar/MonthlyView.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ partial class MonthlyView : CalendarBase
public DisplayedView DisplayedView { get; set; } = DisplayedView.Monthly;

private DateTime _firstdate;

[CascadingParameter(Name = "FirstDate")]
public DateTime FirstDate
{
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ https://github.com/tossnet/Blazor-Calendar/wiki

## <a name="ReleaseNotes"></a>Release Notes

Blazor-Calendar/pull/13
<details open="open"><summary>Version 2.6.5</summary>
<details open="open"><summary>Version 2.7.0</summary>

>- Add WeekView (thanks [BruderJohn](https://github.com/BruderJohn) ) [Pull #11](https://github.com/tossnet/Blazor-Calendar/pull/13)
>- Add .NET9 and remove .NET6.0
</details>
<details><summary>Version 2.6.5</summary>

>- Add WeekView (thanks [BruderJohn](https://github.com/BruderJohn) ) [Pull #13](https://github.com/tossnet/Blazor-Calendar/pull/13)
</details>
<details><summary>Version 2.6.4</summary>
Expand Down
2 changes: 1 addition & 1 deletion samples/BlazorServer/BlazorServer.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>net6.0; net7.0; net8.0</TargetFrameworks>
<TargetFrameworks>net7.0; net8.0; net9.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>BlazorServer</RootNamespace>
Expand Down
4 changes: 2 additions & 2 deletions samples/BlazorServer/Pages/Annualy.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/annualyview"
@page "/"
@using BlazorCalendar
@using BlazorCalendar.Models

Expand Down Expand Up @@ -37,7 +37,7 @@
private DateTime today = DateTime.Today;
private int months = 12;
private List<Tasks> TasksList;
private string fakeConsole = "";
private string fakeConsole = string.Empty;
private BlazorCalendar.PriorityLabel PriorityDisplay = PriorityLabel.Code;
private bool draggable = true;

Expand Down
11 changes: 0 additions & 11 deletions samples/BlazorServer/Pages/Index.razor

This file was deleted.

9 changes: 2 additions & 7 deletions samples/BlazorServer/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@
<nav class="flex-column">
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<span class="oi oi-home" aria-hidden="true"></span> Index
<span class="oi oi-home" aria-hidden="true"></span> Annual view
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="annualyview">
<span class="oi oi-calendar" aria-hidden="true"></span> Annual view
</NavLink>
</div>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="monthlyview">
<span class="oi oi-calendar" aria-hidden="true"></span> Monthly view
Expand Down
34 changes: 17 additions & 17 deletions samples/BlazorWebAssembly/BlazorWebAssembly.csproj
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFrameworks>net6.0; net7.0; net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net7.0; net8.0; net9.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.25" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.25" PrivateAssets="all" />
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.0" PrivateAssets="all" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.14" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.14" PrivateAssets="all" />
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.11" PrivateAssets="all" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" PrivateAssets="all" />
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.20" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.20" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\BlazorCalendar\BlazorCalendar.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\BlazorCalendar\BlazorCalendar.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/BlazorWebAssembly/Pages/Annualy.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/annualyview"
@page "/"
@using BlazorCalendar
@using BlazorCalendar.Models

Expand Down Expand Up @@ -37,7 +37,7 @@
private DateTime today = DateTime.Today;
private int months = 8;
private List<Tasks> TasksList;
private string fakeConsole = "";
private string fakeConsole = string.Empty;
private BlazorCalendar.PriorityLabel PriorityDisplay = PriorityLabel.Code;
private bool draggable = true;

Expand Down
12 changes: 0 additions & 12 deletions samples/BlazorWebAssembly/Pages/Index.razor

This file was deleted.

2 changes: 1 addition & 1 deletion samples/BlazorWebAssembly/Pages/Monthly.razor
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
private DateTime today = DateTime.Today;
private int months = 12;
private List<Tasks> TasksList;
private string fakeConsole = "";
private string fakeConsole = string.Empty;
private BlazorCalendar.PriorityLabel PriorityDisplay = PriorityLabel.Code;
private bool draggable = true;

Expand Down
7 changes: 1 addition & 6 deletions samples/BlazorWebAssembly/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@
<nav class="flex-column">
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<span class="oi oi-home" aria-hidden="true"></span> Index
<span class="oi oi-home" aria-hidden="true"></span> Annualy view
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="annualyview">
<span class="oi oi-calendar" aria-hidden="true"></span> Annualy view
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="monthlyview">
<span class="oi oi-calendar" aria-hidden="true"></span> Monthly view
Expand Down

0 comments on commit 80b3915

Please sign in to comment.