Skip to content

#2361: Improved dotnet installation - #2341

Merged
hohwille merged 14 commits into
devonfw:mainfrom
MeShehi:694_add_nettool_linux
Aug 24, 2026
Merged

#2361: Improved dotnet installation#2341
hohwille merged 14 commits into
devonfw:mainfrom
MeShehi:694_add_nettool_linux

Conversation

@MeShehi

@MeShehi MeShehi commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #2361

Implemented changes:

  • Added DOTNET_ROOT environment variable
  • Added test for correct setup of environment variables

Testing instructions

Run the cli configuration with the following:

  1. uninstall dotnet
  2. install dotnet
  3. env
  4. Check that both DOTNET_HOME and DOTNET_ROOT have an exported path
  5. Check also on ide dotnet --info

Checklist for this PR

Make sure everything is checked before merging this PR. For further info please also see
our DoD.

  • When running mvn clean test locally all tests pass and build is successful
  • PR title is of the form #«issue-id»: «brief summary» (e.g. #921: fixed setup.bat and not feature/921 fixed setup.bat). If no issue ID exists, title only.
  • PR top-level comment summaries what has been done and contains link to addressed issue(s)
  • PR and issue(s) have suitable labels
  • Issue is set to In Progress and assigned to you or there is no issue (might happen for very small PRs)
  • You followed all coding conventions
  • You have added the issue implemented by your PR in CHANGELOG.adoc unless issue is labelled
    with internal
  • You have not changed any dependency in pom.xml files or otherwise if runtime dependencies changed, you have updated our LICENSE.asciidoc
  • You have formulated clear instructions on how to test your contribution under "Testing instructions"

@MeShehi MeShehi self-assigned this Aug 18, 2026
@MeShehi MeShehi moved this from 🆕 New to 👀 In review in IDEasy board Aug 18, 2026
@MeShehi MeShehi moved this from 👀 In review to Team Review in IDEasy board Aug 18, 2026
@coveralls

coveralls commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 32739066120

Coverage increased (+0.01%) to 73.504%

Details

  • Coverage increased (+0.01%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 2 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

2 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
com/devonfw/tools/ide/tool/dotnet/DotNet.java 1 83.33%
com/devonfw/tools/ide/version/VersionSegment.java 1 91.86%

Coverage Stats

Coverage Status
Relevant Lines: 18035
Covered Lines: 13860
Line Coverage: 76.85%
Relevant Branches: 8007
Covered Branches: 5282
Branch Coverage: 65.97%
Branches in Coverage %: Yes
Coverage Strength: 3.28 hits per line

💛 - Coveralls

@laim2003 laim2003 self-assigned this Aug 18, 2026
@laim2003
laim2003 self-requested a review August 18, 2026 08:06
@majesteSil
majesteSil self-requested a review August 18, 2026 08:08
@laim2003 laim2003 added dotnet .NET SDK for C# and more install installation process of IDE + tools and install commandlet uninstall uninstall tools or IDEasy itself linux specific for linux OS (debian, ubunutu, suse, etc.) enhancement New feature or request labels Aug 18, 2026
@laim2003
laim2003 removed their request for review August 18, 2026 08:50
@laim2003 laim2003 removed their assignment Aug 18, 2026
@majesteSil

majesteSil commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR. Aside from the wrong positioning of the Changelog entry, I tested the changes on both Windows and Linux (WSL).Here are my findings:
The first three commands (ide uninstall dotnet, ide install dotnet, and ide env) work as expected on both operating systems.
However, running ide dotnet --info still throws an error on Linux (WSL). Since this ticket is specifically about making dotnet fully functional on Linux, we should look into this.
I have attached the log files for both Windows and Linux to this comment. Tip: You can use lnav or fzf to navigate through them easily. It might be an edge case with my specific WSL configuration, though I suspect it could be a general Linux issue.

My Suggestions, Could you please double-check the command on Linux? If this requires specific local setup, it would be great to update the PR description with the necessary prerequisites for testing.
IDEasy-ide-dotnet-09-42-56.log
IDEasy-ide-dotnet-09-44-21.log

@MeShehi

MeShehi commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

However, running ide dotnet --info still throws an error on Linux (WSL).

I think we need to give this an extra look. I'm testing on Arch, could it be something to do with WSL? Regardless, I'll give it a proper look tomorrow morning

Comment thread CHANGELOG.adoc Outdated
@MeShehi

MeShehi commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Afer a call with Majeste we confirmed that his issue was because of a missing library on his setup, moving this to Review

@MeShehi
MeShehi requested a review from hohwille August 21, 2026 10:41
@MeShehi MeShehi moved this from Team Review to 👀 In review in IDEasy board Aug 21, 2026
@hohwille hohwille changed the title #694 Improved dotnet installation #694: Improved dotnet installation Aug 21, 2026

@hohwille hohwille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MeShehi thanks for your PR. Nice improvement. 👍 Seems that Microsoft with .NET does not follow common convetions to use DOTNET_HOME variable but DOTNET_ROOT.
Therefore your PR is a reasonable improvement. However, as I mentioned you are associating the wrong issue here.

Comment thread CHANGELOG.adoc Outdated
@MeShehi MeShehi changed the title #694: Improved dotnet installation #2361: Improved dotnet installation Aug 24, 2026
@MeShehi

MeShehi commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

I created a new issue and changed the referenced issue in this PR

@hohwille hohwille added this to the release:2026.08.002 milestone Aug 24, 2026
@hohwille
hohwille merged commit 43526bf into devonfw:main Aug 24, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in IDEasy board Aug 24, 2026
@majesteSil

majesteSil commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Successfully tested with 2026.08.002 on Windows:
ide env
output:

...
 DOTNET_HOME=C:\Users\$USER\projects\IDEasy\software\dotnet
DOTNET_ROOT=C:\Users\$USER\projects\IDEasy\software\dotnet
DOTNET_VERSION=10*
...

ide dotnet --info

No CVEs found for version 10.0.400 of tool dotnet.
.NET SDK:
 Version:           10.0.400
 Commit:            14fbf8d527
 Workload version:  10.0.400-manifests.330ea142
 MSBuild version:   18.9.6+14fbf8d52

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.26200
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Users\$USER\projects\IDEasy\software\dotnet\sdk\10.0.400\
...
Environment variables:
  DOTNET_HOME                              [C:\Users\$USER\projects\_ide\software\default\dotnet\dotnet\10.0.400]
  DOTNET_ROOT                              [C:\Users\$USER\projects\_ide\software\default\dotnet\dotnet\10.0.400]
...

@majesteSil

Copy link
Copy Markdown
Contributor

Successfully tested with 2026.08.002 on Linux(WSL):
ide env
output:

...
export DOTNET_HOME="/home/$USER/projects/IDEasy/software/dotnet"
export DOTNET_ROOT="/home/$USER/projects/IDEasy/software/dotnet"
DOTNET_VERSION="10*"
...

ide dotnet --info

...
.NET SDK:
 Version:           10.0.400
 Commit:            14fbf8d527
 Workload version:  10.0.400-manifests.330ea142
 MSBuild version:   18.9.6+14fbf8d52

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  26.04
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /home/$USER/projects/_ide/software/default/dotnet/dotnet/10.0.400/sdk/10.0.400/
...

@majesteSil majesteSil added the QA approved Label a PR that has been re-testet via nightly SNAPSHOT after merge and commented. label Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dotnet .NET SDK for C# and more enhancement New feature or request install installation process of IDE + tools and install commandlet linux specific for linux OS (debian, ubunutu, suse, etc.) QA approved Label a PR that has been re-testet via nightly SNAPSHOT after merge and commented. uninstall uninstall tools or IDEasy itself

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Improve dotnet installation by setting DOTNET_ROOT

5 participants