Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,16 @@ private static BuildScript DownloadDotNetVersion(IBuildActions actions, ILogger
getInstall = version =>
{
var psCommand = $"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Version {version} -InstallDir {path}";
var environment = new Dictionary<string, string>
{
// Starting with .NET 11, the installation script uses tar by default. However,
// tar extraction fails in dotnet-install.ps1, so force the script to download
// and extract the ZIP archive instead. This workaround may be removable in the future.
{"DOTNET_INSTALL_SKIP_TAR", "1"}
};

BuildScript GetInstall(string pwsh) =>
new CommandBuilder(actions).
new CommandBuilder(actions, environment: environment).
RunCommand(pwsh).
Argument("-NoProfile").
Argument("-ExecutionPolicy").
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Console.WriteLine($"<arguments>{string.Join(",", args)}</arguments>");
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "11.0.100-rc.1.26425.128"
}
}
7 changes: 7 additions & 0 deletions csharp/ql/integration-tests/all-platforms/dotnet_11/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pytest

def test1(codeql, csharp):
codeql.database.create()

def test2(codeql, csharp):
codeql.database.create(build_mode="none")
Loading