Skip to content

Commit

Permalink
⬆️ Add support for .NET8
Browse files Browse the repository at this point in the history
  • Loading branch information
koeeenig committed Nov 19, 2023
1 parent 0467f70 commit d3ed102
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/BlazeKit.Core/BlazeKit.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
2 changes: 1 addition & 1 deletion src/BlazeKit.Reactive/BlazeKit.Reactive.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<PackageTags>Blazor, Reactivity, Signals</PackageTags>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/BlazeKit.Site/Assets/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ That's it 👍
After you have installed the required dependencies, the easiest way to get a project up an running is by using the BlazeKit CLI.
```shell
# Install the BlazeKit CLI
dotnet tool install --global BlazeKit.CLI --version 0.1.0-alpha.1
dotnet tool install --global BlazeKit.CLI --version 0.1.0-alpha.2
```
Now simply create your first BlazeKit project by running the following command
```shell
Expand All @@ -28,5 +28,5 @@ And here it is, your first BalzeKit project 🎉
The easiest way to update the BlazeKit CLI is to simply uninstall and reinstall it.
```shell
dotnet tool uninstall -g BlazeKit.CLI
dotnet tool install -g BlazeKit.CLI --version 0.1.0-alpha.1
dotnet tool install -g BlazeKit.CLI --version 0.1.0-alpha.2
```
9 changes: 4 additions & 5 deletions src/BlazeKit.Site/BlazeKit.Site.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
Expand Down Expand Up @@ -41,17 +41,16 @@
<ItemGroup>
<!--<PackageReference Include="BlazeKit" Version="1.0.0" />-->
<PackageReference Include="Markdig" Version="0.33.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.13" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.13" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="Yaapii.Atoms" Version="3.0.0" />
</ItemGroup>

<ItemGroup>
<!--<ProjectReference Include="..\..\src\BlazeKit.Deployment.Vercel\BlazeKit.Deployment.Vercel.csproj" />-->
<ProjectReference Include="..\..\src\BlazeKit.Core\BlazeKit.Core.csproj" />
<ProjectReference Include="..\..\src\BlazeKit.Reactive\BlazeKit.Reactive.csproj" />
<ProjectReference Include="..\..\src\BlazeKit\BlazeKit.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\BlazeKit.Deployment.Vercel\BlazeKit.Deployment.Vercel.csproj" />
<!-- <ProjectReference Include="..\BlazeKit.Deployment.Vercel\BlazeKit.Deployment.Vercel.csproj" /> -->
</ItemGroup>


Expand Down
6 changes: 0 additions & 6 deletions src/BlazeKit.Site/Pages/Layout.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@using BlazeKit.Core.Routing;
@inherits LayoutComponentBase
@code {
[Inject]
Expand All @@ -17,11 +16,6 @@
</hgroup>
<nav class="navbar">
<ul>
@* <li><a href="/">🏠 Home</a></li>
<li><a href="/create-a-project">🏃 Getting Started</a></li>
<li><a href="/reactivity">⚡ Reactivity</a></li>
<li><a href="/routing">🪧 Routing</a></li>
<li><a href="/layouts">🖼️ Layouts</a></li> *@
<li><a href="/">Home</a></li>
<li><a href="/create-a-project">Getting Started</a></li>
<li><a href="/reactivity">Reactivity</a></li>
Expand Down
1 change: 0 additions & 1 deletion src/BlazeKit.Site/Pages/Reactivity/Basic/Page.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@using BlazeKit.Core.Routing;
@using BlazeKit.Reactive;
@using BlazeKit.Reactive.Blazor;
@using BlazeKit.Reactive.Signals;
Expand Down
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"buildCommand": "dotnet build ; dotnet publish ./src/BlazeKit.Site",
"installCommand": "rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm ; yum -y install dotnet-sdk-7.0 ; dotnet --version",
"installCommand": "rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm ; yum -y install dotnet-sdk-8.0 ; dotnet --version",
"outputDirectory": ".vercel/output/static"
}

0 comments on commit d3ed102

Please sign in to comment.