Skip to content

#694: Improved dotnet installation - #2341

Open
MeShehi wants to merge 10 commits into
devonfw:mainfrom
MeShehi:694_add_nettool_linux
Open

#694: Improved dotnet installation#2341
MeShehi wants to merge 10 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 #694

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 32473417992

Coverage increased (+0.04%) to 73.009%

Details

  • Coverage increased (+0.04%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 1 coverage regression across 1 file.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

1 previously-covered line in 1 file lost coverage.

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

Coverage Stats

Coverage Status
Relevant Lines: 17654
Covered Lines: 13445
Line Coverage: 76.16%
Relevant Branches: 7817
Covered Branches: 5151
Branch Coverage: 65.89%
Branches in Coverage %: Yes
Coverage Strength: 3.24 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

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
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.) uninstall uninstall tools or IDEasy itself

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Add linux support to dotnet tool

4 participants