Open varon opened 1 year ago
Would you be interested in submitting a PR to resolve this?
Unfortunately not at this time.
If I was working directly with ionide/proj info, sure - I only opened this up because I ran into a downstream issue with the F# LSP FsAutoComplete which I'm experimenting with, so don't have the code checked out and/or building on my side.
I'd also suggest that a change like this has the potential to be quite fiddly. There's probably various deployment scenarios to look out for, and someone experienced should definitely check this being fixed.
Sorry I can't be of direct help in solving this today.
I have encountered a hard crash inside your library due to use of reflection which is not available in a single file publish mode.
This should be very simple to solve.
The precise issue occurs on line: https://github.com/ionide/proj-info/blob/67cc98f0a719f8e3126100a2bd109ace85548ad3/src/Ionide.ProjInfo.ProjectSystem/Environment.fs#L146
Alternative approaches to achieve the same thing are available here: https://stackoverflow.com/questions/58428375/cannot-get-original-executable-path-for-net-core-3-0-single-file-ppublishsin
And the full documentation explaining the compatibility is here: https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=cli#api-incompatibility