Skip to content

Commit

Permalink
Merge pull request #2 from koculu/upgrade-to-net-9.0
Browse files Browse the repository at this point in the history
Upgrade to net 9.0
  • Loading branch information
koculu authored Nov 14, 2024
2 parents 76c6163 + 9a92f76 commit 1fc363b
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 59 deletions.
47 changes: 24 additions & 23 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,35 @@ name: Build and Test

on:
push:
branches: [ "main" ]
branches: ['main']
paths-ignore:
- '*.md'
- '*.md'
pull_request:
branches: [ "main" ]
branches: ['main']
paths-ignore:
- '*.md'
- '*.md'

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
6.0.x
- name: Display dotnet version
run: dotnet --version
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./src
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
working-directory: ./src
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
9.0.x
8.0.x
7.0.x
6.0.x
- name: Display dotnet version
run: dotnet --version
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./src
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
working-directory: ./src
53 changes: 27 additions & 26 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,34 @@ on:
workflow_dispatch:
inputs:
name:
description: "When you press run workflow, the nuget package will be published."
default: "I understand."
description: 'When you press run workflow, the nuget package will be published.'
default: 'I understand.'
jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
6.0.x
- name: Display dotnet version
run: dotnet --version
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./src
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
working-directory: ./src
- name: Publish the package to nuget.org
run: dotnet nuget push TopazView/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
working-directory: ./src
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
9.0.x
8.0.x
7.0.x
6.0.x
- name: Display dotnet version
run: dotnet --version
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./src
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
working-directory: ./src
- name: Publish the package to nuget.org
run: dotnet nuget push TopazView/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
working-directory: ./src
2 changes: 1 addition & 1 deletion src/TopazView.UnitTests/TopazView.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<IsPackable>false</IsPackable>
Expand Down
4 changes: 2 additions & 2 deletions src/TopazView/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<Authors>Ahmed Yasin Koculu</Authors>
<PackageId>TopazView</PackageId>
<Title>TopazView</Title>
<ProductVersion>1.0.9.0</ProductVersion>
<Version>1.0.9.0</Version>
<ProductVersion>1.1.0.0</ProductVersion>
<Version>1.1.0.0</Version>
<Authors>Ahmed Yasin Koculu</Authors>
<AssemblyTitle>TopazView</AssemblyTitle>
<Description>TopazView is a lightweight view engine that utilizes the Topaz JavaScript Engine.</Description>
Expand Down
7 changes: 4 additions & 3 deletions src/TopazView/TopazView.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<NeutralLanguage>en-US</NeutralLanguage>
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
<RepositoryUrl>https://github.com/koculu/TopazView</RepositoryUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -19,8 +19,9 @@
<RootNamespace>Tenray.TopazView</RootNamespace>
<Configurations>Debug;Release</Configurations>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<RunAnalyzersDuringLiveAnalysis>True</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzersDuringLiveAnalysis>False</RunAnalyzersDuringLiveAnalysis>
<AnalysisMode>All</AnalysisMode>
<RunAnalyzersDuringBuild>False</RunAnalyzersDuringBuild>
</PropertyGroup>

<ItemGroup>
Expand All @@ -35,7 +36,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Topaz" Version="1.4.0" />
<PackageReference Include="Topaz" Version="1.4.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/samples/AspNetCoreMVCSample/AspNetCoreMVCSample.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RazorCompileOnBuild>false</RazorCompileOnBuild>
Expand Down
6 changes: 3 additions & 3 deletions src/samples/WebView2Sample/WebView2Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<Nullable>disable</Nullable>
<UseWPF>true</UseWPF>
<StartupObject>WebView2Sample.Program</StartupObject>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2792.45" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2849.39" />
<PackageReference Include="SimpleInjector" Version="5.5.0" />
</ItemGroup>

Expand Down

0 comments on commit 1fc363b

Please sign in to comment.