Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: CI
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,10 +15,13 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup dotnet 6.0
uses: actions/setup-dotnet@v1
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0'
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Build and Test
run: ./Build.ps1
shell: pwsh
Expand All @@ -29,7 +32,7 @@ jobs:
run: ./Push.ps1
shell: pwsh
- name: Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts/**/*
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup dotnet 6.0
uses: actions/setup-dotnet@v1
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0'
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Build and Test
run: ./Build.ps1
shell: pwsh
Expand All @@ -34,7 +37,7 @@ jobs:
run: ./Push.ps1
shell: pwsh
- name: Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts/**/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ node_modules
*.ng.ts
*.sln.ide
project.lock.json
.idea/*
2 changes: 1 addition & 1 deletion Push.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if ([string]::IsNullOrEmpty($Env:NUGET_API_KEY)) {
} else {
Get-ChildItem $artifacts -Filter "*.nupkg" | ForEach-Object {
Write-Host "$($scriptName): Pushing $($_.Name)"
dotnet nuget push $_ --source $Env:NUGET_URL --api-key $Env:NUGET_API_KEY
dotnet nuget push $_ --source $Env:NUGET_URL --api-key $Env:NUGET_API_KEY --skip-duplicate
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ![HtmlTags](https://raw.githubusercontent.com/HtmlTags/htmltags/master/logo/FubuHtml_32.png) HtmlTags
# ![HtmlTags](https://raw.githubusercontent.com/HtmlTags/htmltags/main/logo/FubuHtml_32.png) HtmlTags

[![CI](https://github.com/htmltags/htmltags/workflows/CI/badge.svg)](https://github.com/htmltags/htmltags/workflows/CI)
[![NuGet](https://img.shields.io/nuget/dt/htmltags.svg)](https://www.nuget.org/packages/htmltags)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 2 additions & 3 deletions src/HtmlTags/HtmlTags.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="MinVer" Version="4.3.0" PrivateAssets="All" />
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/HtmlTags/Reflection/PropertyChain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public Type OwnerType
var last = _valueGetters.Last();
if (last is MethodValueGetter || last is IndexerValueGetter)
{
var nextUp = _chain.Reverse().Skip(1).FirstOrDefault() as PropertyValueGetter;
if (nextUp != null)
// https://github.com/dotnet/roslyn/issues/77212
if (Enumerable.Reverse(_chain).Skip(1).FirstOrDefault() is PropertyValueGetter nextUp)
{
return nextUp.PropertyInfo.PropertyType;
}
Expand Down
2 changes: 1 addition & 1 deletion test/HtmlTags.Testing/HtmlTags.Testing.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down