Skip to content

Commit 1763b00

Browse files
committed
C#: Update extractor to target .NET 10.
1 parent 4372567 commit 1763b00

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

csharp/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
66
<Nullable>enable</Nullable>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DotNet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public IList<string> GetNugetFeedsFromFolder(string folderPath)
139139
}
140140

141141
// The version number should be kept in sync with the version .NET version used for building the application.
142-
public const string LatestDotNetSdkVersion = "9.0.300";
142+
public const string LatestDotNetSdkVersion = "10.0.100";
143143

144144
public static ReadOnlyDictionary<string, string> MinimalEnvironment => IDotNetCliInvoker.MinimalEnvironment;
145145

csharp/extractor/Semmle.Extraction.CSharp.DependencyStubGenerator/Semmle.Extraction.CSharp.DependencyStubGenerator.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<AssemblyName>Semmle.Extraction.CSharp.DependencyStubGenerator</AssemblyName>
77
<RootNamespace>Semmle.Extraction.CSharp.DependencyStubGenerator</RootNamespace>
88
<ImplicitUsings>enable</ImplicitUsings>
@@ -14,4 +14,4 @@
1414
<ProjectReference Include="..\Semmle.Extraction.CSharp.StubGenerator\Semmle.Extraction.CSharp.StubGenerator.csproj" />
1515
</ItemGroup>
1616
<Import Project="..\..\.paket\Paket.Restore.targets" />
17-
</Project>
17+
</Project>

csharp/scripts/gen-assembly-info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def options():
2828
[assembly: AssemblyCompany("GitHub")]
2929
[assembly: AssemblyCopyright("Copyright © 2024 GitHub")]
3030
31-
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
31+
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
3232
3333
"""
3434
output_file.write_text(output_file_contents)

misc/bazel/csharp.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("@rules_dotnet//dotnet:defs.bzl", "csharp_binary", "csharp_library", "cshar
22
load("@rules_pkg//pkg:mappings.bzl", "strip_prefix")
33
load("//misc/bazel:pkg.bzl", "codeql_pkg_files")
44

5-
TARGET_FRAMEWORK = "net9.0"
5+
TARGET_FRAMEWORK = "net10.0"
66

77
def _gen_assembly_info(name):
88
assembly_info_gen = name + "-assembly-info"

0 commit comments

Comments
 (0)