Skip to content

Not working on Android Termux #9528

Description

@wherewhere

Environment data

dotnet --info output:
.NET SDK:
 Version:           10.0.109
 Commit:            901ca94124
 Workload version:  10.0.100-manifests.b0c14421
 MSBuild version:   18.0.11

Runtime Environment:
 OS Name:     Linux
 OS Version:  
 OS Platform: Linux
 RID:         linux-bionic-arm64
 Base Path:   /data/data/com.termux/files/usr/lib/dotnet/sdk/10.0.109/

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
  Version:      10.0.9
  Architecture: arm64
  Commit:       901ca94124

.NET SDKs installed:
  8.0.128 [/data/data/com.termux/files/usr/lib/dotnet/sdk]
  9.0.118 [/data/data/com.termux/files/usr/lib/dotnet/sdk]
  10.0.109 [/data/data/com.termux/files/usr/lib/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.28 [/data/data/com.termux/files/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.17 [/data/data/com.termux/files/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 10.0.9 [/data/data/com.termux/files/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.28 [/data/data/com.termux/files/usr/lib/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.17 [/data/data/com.termux/files/usr/lib/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 10.0.9 [/data/data/com.termux/files/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

VS Code version: 1.128.0
C# Extension version: 2.146.2

C# logs

When try to run it on VSCode in Termux, it throw:

C# output window contents:

[info] [ERROR]: C# Extension failed to get platform information.

C# Dev output window contents:

[error] Error occurred in activate: Error: Activating extension 'ms-dotnettools.csharp' failed: Unsupported platform: android.

After I change case"linux": to case"linux":case"android": in GetCurrent function in extension.js, it throw:

C# output window contents:

[info] [ERROR]: C# Extension failed to get platform information.

C# Dev output window contents:

2026-07-14 16:40:19.086 [info] Experimentation service initialization failed: TypeError: o.ExperimentationService is not a constructor
2026-07-14 16:40:19.759 [info] Default solution: 
2026-07-14 16:40:21.735 [info] Starting: Opening a solution
2026-07-14 16:40:21.736 [info] Starting: processing the solution file "/data/data/com.termux/files/home/Downloads/JSILTest/JSILTest.slnx" in C# Dev Kit server
2026-07-14 16:40:21.736 [info] Checking if the opened file is a solution filter: /data/data/com.termux/files/home/Downloads/JSILTest/JSILTest.slnx
2026-07-14 16:40:21.749 [info] Starting: Spawn .NET server
2026-07-14 16:40:21.749 [info] Using dotnet resolution provided by ".NET Install Tool"
2026-07-14 16:40:21.945 [info] Using existing .NET runtime at "/data/data/com.termux/files/usr/lib/dotnet/dotnet" to load C# Dev Kit processes
2026-07-14 16:40:22.025 [info] .NET SDK found: "/data/data/com.termux/files/usr/lib/dotnet/dotnet"
2026-07-14 16:40:22.026 [info] Workspace folder: "/data/data/com.termux/files/home/Downloads/JSILTest" requires SDK version: 10.0.109
2026-07-14 16:40:22.029 [info] ASP.NET runtime found, using ASP.NET runtimeconfig for project system host.
2026-07-14 16:40:22.110 [info] .NET server STDERR: error: "/data/data/com.termux/files/home/.local/share/code-server/extensions/ms-dotnettools.csdevkit-3.27.196/components/vs-green-server/platforms/linux-arm64/node_modules/@microsoft/visualstudio-server.linux-arm64/Microsoft.VisualStudio.Code.Server": executable's TLS segment is underaligned: alignment is 8 (skew 0), needs to be at least 64 for ARM64 Bionic

2026-07-14 16:40:22.155 [info] .NET server exited with null

Steps to reproduce

  1. Open C# project on VSCode in Termux
  2. Not working

Expected behavior

Working on Termux.

Actual behavior

Not working on Termux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions