Skip to content

Commit cb9b2cd

Browse files
authored
Merge branch 'main' into feature/175-untyped-nodes
2 parents c14a532 + acac948 commit cb9b2cd

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
run: dotnet restore ${{ env.solutionName }}
3232
- name: Build
3333
run: dotnet build ${{ env.solutionName }} --no-restore -c Release /p:UseSharedCompilation=false
34-
- name: Test
35-
run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover
34+
- name: Test for net462
35+
run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release --framework net462
36+
- name: Test for net8.0 and collect coverage
37+
run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover --framework net8.0
3638
- name: Perform CodeQL Analysis
3739
uses: github/codeql-action/analyze@v3

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ jobs:
7676
./.sonar/scanner/dotnet-sonarscanner begin /k:"microsoft_kiota-abstractions-dotnet" /o:"microsoft" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="Microsoft.Kiota.Abstractions.Tests/coverage.net8.0.opencover.xml"
7777
dotnet workload restore
7878
dotnet build
79-
dotnet test Microsoft.Kiota.Abstractions.sln --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
79+
dotnet test Microsoft.Kiota.Abstractions.sln --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --framework net8.0
8080
./.sonar/scanner/dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
- Added support for untyped nodes. (https://github.com/microsoft/kiota-abstractions-dotnet/issues/175)
1515

16+
## [1.7.10] - 2024-02-26
17+
18+
### Changed
19+
20+
- Added `net6.0` and `net8.0` as target frameworks.
21+
1622
## [1.7.9] - 2024-02-05
1723

1824
### Changed

Microsoft.Kiota.Abstractions.Tests/Microsoft.Kiota.Abstractions.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
12+
<PackageReference Include="coverlet.msbuild" Version="6.0.1">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
</PackageReference>

src/Microsoft.Kiota.Abstractions.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
77
<AssemblyTitle>Kiota Abstractions Library for dotnet</AssemblyTitle>
88
<Authors>Microsoft</Authors>
9-
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;</TargetFrameworks>
9+
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0;net8.0</TargetFrameworks>
1010
<LangVersion>latest</LangVersion>
1111
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1212
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</PackageIconUrl>
@@ -34,9 +34,12 @@
3434
<PackageReadmeFile>README.md</PackageReadmeFile>
3535
<NoWarn>$(NoWarn);NU5048;NETSDK1138</NoWarn>
3636
</PropertyGroup>
37-
<PropertyGroup Condition="'$(TargetFramework)' == 'net5.0'">
37+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)','net5.0'))">
3838
<IsTrimmable>true</IsTrimmable>
3939
</PropertyGroup>
40+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)','net8.0'))">
41+
<IsAotCompatible>true</IsAotCompatible>
42+
</PropertyGroup>
4043

4144
<ItemGroup>
4245
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />

0 commit comments

Comments
 (0)