mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Update extractor to use .NET Runtime 9.0.5 and .NET SDK 9.0.300.
This commit is contained in:
@@ -7,7 +7,7 @@ runs:
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 9.0.100
|
||||
dotnet-version: 9.0.300
|
||||
- name: Build Extractor
|
||||
shell: bash
|
||||
run: scripts/create-extractor-pack.sh
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
}
|
||||
|
||||
// The version number should be kept in sync with the version .NET version used for building the application.
|
||||
public const string LatestDotNetSdkVersion = "9.0.100";
|
||||
public const string LatestDotNetSdkVersion = "9.0.300";
|
||||
|
||||
/// <summary>
|
||||
/// Returns a script for downloading relevant versions of the
|
||||
|
||||
3
csharp/paket.main_extension.bzl
generated
3
csharp/paket.main_extension.bzl
generated
@@ -2,8 +2,9 @@
|
||||
|
||||
load(":paket.main.bzl", _main = "main")
|
||||
|
||||
def _main_impl(_ctx):
|
||||
def _main_impl(module_ctx):
|
||||
_main()
|
||||
return module_ctx.extension_metadata(reproducible = True)
|
||||
|
||||
main_extension = module_extension(
|
||||
implementation = _main_impl,
|
||||
|
||||
@@ -21,7 +21,7 @@ mkdir -p extractor-pack
|
||||
mkdir -p extractor-pack/tools/${platform}
|
||||
|
||||
function dotnet_publish {
|
||||
dotnet publish --self-contained --configuration Release --runtime ${dotnet_platform} -p:RuntimeFrameworkVersion=9.0.0 $1 --output extractor-pack/tools/${platform}
|
||||
dotnet publish --self-contained --configuration Release --runtime ${dotnet_platform} -p:RuntimeFrameworkVersion=9.0.5 $1 --output extractor-pack/tools/${platform}
|
||||
}
|
||||
|
||||
dotnet tool restore
|
||||
|
||||
@@ -118,7 +118,7 @@ class Generator:
|
||||
bqrsFile = os.path.join(rawOutputDir, outputName + '.bqrs')
|
||||
jsonFile = os.path.join(rawOutputDir, outputName + '.json')
|
||||
|
||||
sdk_version = '9.0.100'
|
||||
sdk_version = '9.0.300'
|
||||
print("\n* Creating new global.json file and setting SDK to " + sdk_version)
|
||||
self.run_cmd(['dotnet', 'new', 'globaljson', '--force', '--sdk-version', sdk_version, '--output', self.workDir])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user