Skip to content

Commit a383774

Browse files
gavinbarronCopilotMIchaelMainer
authored
feat!: update target frameworks to net8.0 and net10.0, drop net5.0 (#3096)
* feat!: update target frameworks to net8.0 and net10.0, drop net5.0 BREAKING CHANGE: Dropped net5.0 target framework. The SDK now targets netstandard2.0, netstandard2.1, net8.0, and net10.0. Consumers targeting net5.0 must upgrade to net8.0 or later. - Update Microsoft.Graph TFMs from netstandard2.0;netstandard2.1;net5.0 to netstandard2.0;netstandard2.1;net8.0;net10.0 - Update test project from net8.0 to net8.0;net10.0 - Replace net5.0 per-TFM property groups with net8.0 and net10.0 Fixes #3095 Co-authored-by: Copilot <[email protected]> * refactor: consolidate per-TFM property groups into global NoWarn Remove redundant per-TFM DocumentationFile/NoWarn property groups that could cause parallel build file write races. GenerateDocumentationFile is already enabled globally, and NoWarn values are now consolidated into the main PropertyGroup. Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Michael Mainer <[email protected]>
1 parent c988840 commit a383774

2 files changed

Lines changed: 3 additions & 27 deletions

File tree

src/Microsoft.Graph/Microsoft.Graph.csproj

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
66
<AssemblyTitle>Microsoft Graph V1.0 Service Client Library</AssemblyTitle>
77
<Authors>Microsoft</Authors>
8-
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
8+
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net10.0</TargetFrameworks>
99
<LangVersion>latest</LangVersion>
1010
<PreserveCompilationContext>false</PreserveCompilationContext>
1111
<AssemblyName>Microsoft.Graph</AssemblyName>
@@ -35,35 +35,11 @@ https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/main/CHANGELOG.md
3535
<EmbedUntrackedSources>true</EmbedUntrackedSources>
3636
<Deterministic>true</Deterministic>
3737
<PackageReadmeFile>README.md</PackageReadmeFile>
38-
<NoWarn>$(NoWarn);NU5048;NETSDK1138</NoWarn>
38+
<NoWarn>$(NoWarn);NU5048;NETSDK1138;1701;1702;1705;1591</NoWarn>
3939
</PropertyGroup>
4040
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)','net5.0'))">
4141
<IsTrimmable>true</IsTrimmable>
4242
</PropertyGroup>
43-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">
44-
<DocumentationFile>bin\Release\Microsoft.Graph.xml</DocumentationFile>
45-
<NoWarn>1701;1702;1705;1591</NoWarn>
46-
</PropertyGroup>
47-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
48-
<DocumentationFile>bin\Debug\Microsoft.Graph.xml</DocumentationFile>
49-
<NoWarn>1701;1702;1705;1591</NoWarn>
50-
</PropertyGroup>
51-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.1|AnyCPU'">
52-
<DocumentationFile>bin\Release\Microsoft.Graph.xml</DocumentationFile>
53-
<NoWarn>1701;1702;1705;1591</NoWarn>
54-
</PropertyGroup>
55-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.1|AnyCPU'">
56-
<DocumentationFile>bin\Debug\Microsoft.Graph.xml</DocumentationFile>
57-
<NoWarn>1701;1702;1705;1591</NoWarn>
58-
</PropertyGroup>
59-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net5.0|AnyCPU'">
60-
<DocumentationFile>bin\Release\Microsoft.Graph.xml</DocumentationFile>
61-
<NoWarn>1701;1702;1705;1591</NoWarn>
62-
</PropertyGroup>
63-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net5.0|AnyCPU'">
64-
<DocumentationFile>bin\Debug\Microsoft.Graph.xml</DocumentationFile>
65-
<NoWarn>1701;1702;1705;1591</NoWarn>
66-
</PropertyGroup>
6743
<!-- https://github.com/clairernovotny/DeterministicBuilds#deterministic-builds -->
6844
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
6945
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>

tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.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>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
55
<AssemblyName>Microsoft.Graph.DotnetCore.Test</AssemblyName>
66
<PackageId>Microsoft.Graph.DotnetCore.Test</PackageId>
77
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>

0 commit comments

Comments
 (0)