Skip to content
Draft
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
16 changes: 8 additions & 8 deletions .azure-pipelines/daily-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ extends:
submodules: recursive

- task: UseDotNet@2
displayName: Set up .NET 8
displayName: Set up .NET 10
inputs:
packageType: 'sdk'
version: 8.x
version: 10.x

- task: UseDotNet@2
displayName: Set up .NET 10
displayName: Set up .NET 11
inputs:
packageType: 'sdk'
version: 10.x
version: 11.x

- task: NuGetAuthenticate@1
displayName: Authenticate to Azure Artifacts
Expand Down Expand Up @@ -81,14 +81,14 @@ extends:
displayName: Build SDK (netstandard2.1)
workingDirectory: $(Build.SourcesDirectory)

- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.Beta.csproj --no-restore -f net8.0
displayName: Build SDK (net8.0)
workingDirectory: $(Build.SourcesDirectory)

- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.Beta.csproj --no-restore -f net10.0
displayName: Build SDK (net10.0)
workingDirectory: $(Build.SourcesDirectory)

- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.Beta.csproj --no-restore -f net11.0
displayName: Build SDK (net11.0)
workingDirectory: $(Build.SourcesDirectory)

- script: dotnet build tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj --no-restore
displayName: Build test project
workingDirectory: $(Build.SourcesDirectory)
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/validatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
dotnet-version: |
8.x
10.x
11.x
- name: Restore dependencies
run: dotnet restore ${{ env.solutionName }}
# Build each TFM sequentially to avoid OOM kills on the runner.
Expand All @@ -34,10 +34,10 @@ jobs:
run: dotnet build ${{ env.projectName }} -f netstandard2.0 --no-restore -c Release
- name: Build for netstandard2.1
run: dotnet build ${{ env.projectName }} -f netstandard2.1 --no-restore -c Release
- name: Build for net8.0
run: dotnet build ${{ env.projectName }} -f net8.0 --no-restore -c Release
- name: Build for net10.0
run: dotnet build ${{ env.projectName }} -f net10.0 --no-restore -c Release
- name: Build for net11.0
run: dotnet build ${{ env.projectName }} -f net11.0 --no-restore -c Release
- name: Build test project
run: dotnet build ${{ env.solutionName }} --no-restore -c Release
- name: Test
Expand All @@ -64,8 +64,8 @@ jobs:
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
dotnet-version: |
8.x
10.x
11.x
- name: Restore dependencies
run: dotnet restore ${{ env.solutionName }}
- name: Build for netstandard2.0
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The Microsoft Graph Beta .NET Client Library 4.x targets .NetStandard 2.0 and .N

The Microsoft Graph Beta .NET Client Library 5.x targets .NetStandard 2.0

The current Microsoft Graph Beta .NET Client Library targets .NET Standard 2.0, .NET Standard 2.1, .NET 10.0, and .NET 11.0. As a breaking change for .NET target framework alignment with .NET support lifecycles, it replaces the dedicated .NET 8.0 target with .NET 11.0. .NET 8 applications can still consume the retained compatible .NET Standard assets, but .NET 8 is no longer a dedicated build or test target.

## Installation via NuGet

To install the client library via NuGet:
Expand Down Expand Up @@ -56,9 +58,10 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope

If you are looking to build the library locally for the purposes of contributing code or running tests, you will need to:

- Have the .NET Core SDK (> 1.0) installed
- Run `dotnet restore` from the command line in your package directory
- Run `nuget restore` and `msbuild` from CLI or run Build from Visual Studio to restore Nuget packages and build the project
- Have the .NET 11 SDK installed, and the .NET 10 runtime to run tests for both supported .NET targets
- Run `dotnet restore Microsoft.Graph.Beta.sln` from the repository root
- Build the library one target framework at a time with `dotnet build src/Microsoft.Graph/Microsoft.Graph.Beta.csproj -f <framework> --no-restore`, using `netstandard2.0`, `netstandard2.1`, `net10.0`, and `net11.0` to avoid exhausting memory
- Run `dotnet test tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj` to run tests for .NET 10.0 and .NET 11.0

> Due to long file names you may need to run `git config --system core.longpaths true` before cloning the repo to your system.

Expand Down
16 changes: 8 additions & 8 deletions pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ extends:
displayName: 'Enable long paths in git'
- checkout: self
- task: UseDotNet@2
displayName: 'Use .NET 8.x sdk'
displayName: 'Use .NET 10.x sdk'
inputs:
packageType: sdk
version: 8.x
version: 10.x
- task: UseDotNet@2
displayName: 'Use .NET 10.x sdk'
displayName: 'Use .NET 11.x sdk'
inputs:
packageType: sdk
version: 10.x
version: 11.x
- task: UseDotNet@2
displayName: 'Use .NET 6.x (for code signing tasks)'
inputs:
Expand Down Expand Up @@ -123,15 +123,15 @@ extends:
projects: '$(Build.SourcesDirectory)\src\Microsoft.Graph\Microsoft.Graph.Beta.csproj'
arguments: '-c $(BuildConfiguration) --no-incremental -f netstandard2.1 --no-restore'
- task: DotNetCoreCLI@2
displayName: 'dotnet build net8.0'
displayName: 'dotnet build net10.0'
inputs:
projects: '$(Build.SourcesDirectory)\src\Microsoft.Graph\Microsoft.Graph.Beta.csproj'
arguments: '-c $(BuildConfiguration) --no-incremental -f net8.0 --no-restore'
arguments: '-c $(BuildConfiguration) --no-incremental -f net10.0 --no-restore'
- task: DotNetCoreCLI@2
displayName: 'dotnet build net10.0'
displayName: 'dotnet build net11.0'
inputs:
projects: '$(Build.SourcesDirectory)\src\Microsoft.Graph\Microsoft.Graph.Beta.csproj'
arguments: '-c $(BuildConfiguration) --no-incremental -f net10.0 --no-restore'
arguments: '-c $(BuildConfiguration) --no-incremental -f net11.0 --no-restore'
- task: DotNetCoreCLI@2
displayName: 'dotnet build test project'
inputs:
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Microsoft.Graph.Beta.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<AssemblyTitle>Microsoft Graph Beta Client Library</AssemblyTitle>
<Authors>Microsoft</Authors>
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net10.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net10.0;net11.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<PreserveCompilationContext>false</PreserveCompilationContext>
<AssemblyName>Microsoft.Graph.Beta</AssemblyName>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<TargetLatestRuntimePatch>false</TargetLatestRuntimePatch>
<AssemblyName>Microsoft.Graph.DotnetCore.Test</AssemblyName>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
Expand Down
Loading