Skip to content

Commit ccd117e

Browse files
authored
Merge pull request #126 from HtmlTags/net10
Adding .NET 8-10 support; removing .NET 6
2 parents ca208cc + 9078f82 commit ccd117e

File tree

9 files changed

+25
-19
lines changed

9 files changed

+25
-19
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
branches:
9-
- master
9+
- main
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
@@ -15,10 +15,13 @@ jobs:
1515
uses: actions/checkout@v2
1616
with:
1717
fetch-depth: 0
18-
- name: Setup dotnet 6.0
19-
uses: actions/setup-dotnet@v1
18+
- name: Setup dotnet
19+
uses: actions/setup-dotnet@v4
2020
with:
21-
dotnet-version: '6.0'
21+
dotnet-version: |
22+
8.0.x
23+
9.0.x
24+
10.0.x
2225
- name: Build and Test
2326
run: ./Build.ps1
2427
shell: pwsh
@@ -29,7 +32,7 @@ jobs:
2932
run: ./Push.ps1
3033
shell: pwsh
3134
- name: Artifacts
32-
uses: actions/upload-artifact@v2
35+
uses: actions/upload-artifact@v4
3336
with:
3437
name: artifacts
3538
path: artifacts/**/*

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ jobs:
1414
uses: actions/checkout@v2
1515
with:
1616
fetch-depth: 0
17-
- name: Setup dotnet 6.0
18-
uses: actions/setup-dotnet@v1
17+
- name: Setup dotnet
18+
uses: actions/setup-dotnet@v4
1919
with:
20-
dotnet-version: '6.0'
20+
dotnet-version: |
21+
8.0.x
22+
9.0.x
23+
10.0.x
2124
- name: Build and Test
2225
run: ./Build.ps1
2326
shell: pwsh
@@ -34,7 +37,7 @@ jobs:
3437
run: ./Push.ps1
3538
shell: pwsh
3639
- name: Artifacts
37-
uses: actions/upload-artifact@v2
40+
uses: actions/upload-artifact@v4
3841
with:
3942
name: artifacts
4043
path: artifacts/**/*

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ node_modules
3737
*.ng.ts
3838
*.sln.ide
3939
project.lock.json
40+
.idea/*

Push.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if ([string]::IsNullOrEmpty($Env:NUGET_API_KEY)) {
66
} else {
77
Get-ChildItem $artifacts -Filter "*.nupkg" | ForEach-Object {
88
Write-Host "$($scriptName): Pushing $($_.Name)"
9-
dotnet nuget push $_ --source $Env:NUGET_URL --api-key $Env:NUGET_API_KEY
9+
dotnet nuget push $_ --source $Env:NUGET_URL --api-key $Env:NUGET_API_KEY --skip-duplicate
1010
if ($lastexitcode -ne 0) {
1111
throw ("Exec: " + $errorMessage)
1212
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ![HtmlTags](https://raw.githubusercontent.com/HtmlTags/htmltags/master/logo/FubuHtml_32.png) HtmlTags
1+
# ![HtmlTags](https://raw.githubusercontent.com/HtmlTags/htmltags/main/logo/FubuHtml_32.png) HtmlTags
22

33
[![CI](https://github.com/htmltags/htmltags/workflows/CI/badge.svg)](https://github.com/htmltags/htmltags/workflows/CI)
44
[![NuGet](https://img.shields.io/nuget/dt/htmltags.svg)](https://www.nuget.org/packages/htmltags)

src/HtmlTags.AspNetCore.TestSite/HtmlTags.AspNetCore.TestSite.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

src/HtmlTags/HtmlTags.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
5-
<Description>Easy generation of html with a jquery inspired object model</Description>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
5+
<Description>Easy generation of HTML with a fluent API</Description>
66
<Copyright>Copyright Jeremy D. Miller, Josh Arnold, Joshua Flanagan, Jimmy Bogard, et al. All rights reserved.</Copyright>
77
<Authors>Jeremy D. Miller;Joshua Flanagan;Josh Arnold;Jimmy Bogard</Authors>
88
<AssemblyName>HtmlTags</AssemblyName>
@@ -27,7 +27,6 @@
2727
</ItemGroup>
2828

2929
<ItemGroup>
30-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
3130
<PackageReference Include="MinVer" Version="4.3.0" PrivateAssets="All" />
3231
<FrameworkReference Include="Microsoft.AspNetCore.App" />
3332
</ItemGroup>

src/HtmlTags/Reflection/PropertyChain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public Type OwnerType
5252
var last = _valueGetters.Last();
5353
if (last is MethodValueGetter || last is IndexerValueGetter)
5454
{
55-
var nextUp = _chain.Reverse().Skip(1).FirstOrDefault() as PropertyValueGetter;
56-
if (nextUp != null)
55+
// https://github.com/dotnet/roslyn/issues/77212
56+
if (Enumerable.Reverse(_chain).Skip(1).FirstOrDefault() is PropertyValueGetter nextUp)
5757
{
5858
return nextUp.PropertyInfo.PropertyType;
5959
}

test/HtmlTags.Testing/HtmlTags.Testing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

0 commit comments

Comments
 (0)