Skip to content

Conversation

@Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Nov 1, 2025

…lPath on .NET (Core)

Description

fixes #2790

This is an attempt at using the built in File.ResolveLinkTarget in the .NET 6 builds, rather than relying on Mono.Unix.
The function isn't in .NET Standard, so the buitl for that still needs to use the external library.

WIP because it might need some more exception handling.

@Numpsy
Copy link
Contributor Author

Numpsy commented Nov 1, 2025

I'm not sure what the history of the FX_NO_POSIX define is.

It's defined in the project file at

<DefineConstants>$(DefineConstants);FX_NO_POSIX</DefineConstants>
but only if the TFM is net472, and the project isn't built as net472, only net6.0;netstandard2.0

@Numpsy
Copy link
Contributor Author

Numpsy commented Nov 1, 2025

The .NET 6 project will also still reference the Mono.Posix.NETStandard NuGet package, not sure how to conditionalize that in Paket

@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2025

Test Results

   12 files  ±0     12 suites  ±0   26m 28s ⏱️ - 6m 8s
  451 tests ±0    450 ✅ ±0  1 💤 ±0  0 ❌ ±0 
1 287 runs  ±0  1 284 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit 284c52a. ± Comparison against base commit 74e1e6f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FAKE.DotNet.Cli / Mono.Posix / Symlinks

1 participant