Skip to content

Conversation

kasperk81
Copy link
Contributor

.net framework is windows only and current netcore has ResolveLinkTarget

@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Dec 27, 2024
@KalleOlaviNiemitalo
Copy link
Contributor

In the following scenario, I think Interop.Unix.realpath(dotnetExeFromPath) would return "/stash/homes/myself/bin/dotnet", but info.LinkTarget would be null:

  • PATH includes /home/myself/bin
  • /home is a symbolic link to /stash/homes
  • /stash/homes/myself/bin/dotnet is a regular file

Does that difference cause any problem?

@tmds
Copy link
Member

tmds commented Jan 15, 2025

Does that difference cause any problem?

I don't think it matters. Once we located the real dotnet executable, it's parent path can be considered a "dotnet root". Whether that parent path contains links shouldn't matter: the SDK only uses the path for finding stuff beneath it, it doesn't care about the path itself.

@kasperk81
Copy link
Contributor Author

@baronfel @marcpopMSFT ptal

@marcpopMSFT marcpopMSFT requested a review from dsplaisted April 28, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants