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
8 changes: 4 additions & 4 deletions .azure-pipelines/daily-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,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
6 changes: 3 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
dotnet-version: |
8.x
10.x
11.x
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
Expand Down Expand Up @@ -74,8 +74,8 @@ jobs:
run: |
$ErrorActionPreference = 'Stop'
$PSNativeCommandUseErrorActionPreference = $true
./.sonar/scanner/dotnet-sonarscanner begin /k:"microsoftgraph_msgraph-sdk-dotnet-core" /o:"microsoftgraph2" /d:sonar.scanner.scanAll=false /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="tests/Microsoft.Graph.DotnetCore.Core.Test/coverage.net8.0.opencover.xml"
./.sonar/scanner/dotnet-sonarscanner begin /k:"microsoftgraph_msgraph-sdk-dotnet-core" /o:"microsoftgraph2" /d:sonar.scanner.scanAll=false /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="tests/Microsoft.Graph.DotnetCore.Core.Test/coverage.net11.0.opencover.xml"
dotnet workload restore
dotnet build /p:UseSharedCompilation=false
dotnet test Microsoft.Graph.Core.sln --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --framework net8.0
dotnet test Microsoft.Graph.Core.sln --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --framework net11.0
./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
12 changes: 6 additions & 6 deletions .github/workflows/validatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Setup .NET 8
- name: Setup .NET 10
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x

- name: Setup .NET 10
- name: Setup .NET 11
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
dotnet-version: 10.0.x
dotnet-version: 11.0.x

- name: Setup JDK for android targets
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
Expand Down Expand Up @@ -71,8 +71,8 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
dotnet-version: 10.x
dotnet-version: 11.x

- name: Validate Trimming warnings
run: dotnet publish -c Release -r win-x64 /p:TreatWarningsAsErrors=true /warnaserror -f net10.0
run: dotnet publish -c Release -r win-x64 /p:TreatWarningsAsErrors=true /warnaserror -f net11.0
working-directory: ./tests/Microsoft.Graph.DotnetCore.Core.Trimming
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ All pull requests should be submitted against the **main** branch or a specific

Some things to note about this project:

## Building and testing

Install the .NET 11 SDK selected by `global.json` and the .NET 10 runtime to run
the retained .NET 10 tests. On Windows, run `dotnet build Microsoft.Graph.Core.sln`
and `dotnet test Microsoft.Graph.Core.sln`. The test project targets .NET Framework
4.6.2, .NET 10, and .NET 11; on other platforms, select `--framework net10.0`
or `--framework net11.0` when running tests.

Validate trimming and Native AOT with
`dotnet publish tests\Microsoft.Graph.DotnetCore.Core.Trimming\Microsoft.Graph.DotnetCore.Core.Trimming.csproj -c Release -r win-x64 -f net11.0 /p:TreatWarningsAsErrors=true /warnaserror`
on Windows with the Native AOT build prerequisites installed.

## Publishing NuGet packages

The release pipeline in `pipelines/productionBuild.yml` builds and signs `Microsoft.Graph.Core`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Integrate the [Microsoft Graph API](https://graph.microsoft.com) into your .NET
project!

The Microsoft Graph .NET Core Client Library contains core classes and interfaces used by [Microsoft.Graph Client Library](https://github.com/microsoftgraph/msgraph-sdk-dotnet) to send native HTTP requests to [Microsoft Graph API](https://graph.microsoft.com). The latest core client library targets .NetStandard 2.0.
The Microsoft Graph .NET Core Client Library contains core classes and interfaces used by [Microsoft.Graph Client Library](https://github.com/microsoftgraph/msgraph-sdk-dotnet) to send native HTTP requests to [Microsoft Graph API](https://graph.microsoft.com). The core client library targets .NET Standard 2.0 and 2.1, .NET Framework 4.6.2, .NET 10, and .NET 11. A dedicated .NET 8 target is no longer provided. Optional .NET 10 MAUI targets remain available when building with `-p:IncludeMauiTargets=true`.

## Installation via NuGet

Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "10.0.202",
"version": "11.0.100",
"rollForward": "major"
}
}
8 changes: 4 additions & 4 deletions pipelines/productionBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ extends:
- checkout: self
clean: true
fetchDepth: 1
- task: UseDotNet@2
displayName: 'Use .NET 8'
inputs:
version: 8.x
- task: UseDotNet@2
displayName: 'Use .NET 10'
inputs:
version: 10.x
- task: UseDotNet@2
displayName: 'Use .NET 11'
inputs:
version: 11.x
- task: PowerShell@2
displayName: 'Set Java Home to use Java 11'
inputs:
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
- https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/blob/main/CHANGELOG.md
</PackageReleaseNotes>
<!-- By default let the Maui targets be excluded to make contribution for external parties easier and dependabot updates. They can be enabled by adding `-p:IncludeMauiTargets=true` to the target build/restore command which is done in the CI.-->
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net8.0;net10.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net10.0;net11.0</TargetFrameworks>
<TargetFrameworks Condition="'$(MauiTargets)' != ''">$(TargetFrameworks);$(MauiTargets)</TargetFrameworks>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph.Core/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "10.0.202",
"version": "11.0.100",
"rollForward": "major"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net462;net8.0;net10.0</TargetFrameworks>
<TargetFrameworks>net462;net10.0;net11.0</TargetFrameworks>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "10.0.202",
"version": "11.0.100",
"rollForward": "major"
}
}
Loading