-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.resx-file not found? #20
Comments
I have a guess that somehow resx files was present in temp folder probably. Because I don’t have Mac, I can only guess for now. If I made a fix, can you try build tool from main branch? |
sure, I can try! |
@ibrahim324 Given the presence of .resx file error - I wonder if it has something to do with the locale, I can't reproduce it on my machine (macOS 15.1.1, en-US) though. If you are here because you saw the post on Reddit, here's an example fish function to compile F# scripts to native executables: function fspk
set name (string replace '.fsx' '' $argv[1])
fspack $argv[1] -f net9.0 --aot -o . \
/p:InvariantGlobalization=true \
/p:OptimizationPreference=Size \
/p:IlcInstructionSet=native &&
rm -rf ./$name.dbg ./$name.dSYM
end Note the invariant globalization and publish AOT properties. You can setup a similar alias in other shells. This should also work around potential locale issues. Lastly, F#'s print functions which parse format specifier tend to break under AOT compilation, structured formatting with open System
let println s = Console.WriteLine(s: string)
let print s = Console.Write(s: string) And using them as let thing = 42, 42
println $"{thing}" |
This was on MacOS, so this might be a problem with msbuild (MSB3552).
Command used:
fspack pack-this.fsx
Contents of my script (pack-this.fsx):
Error in terminal:
translation (Deepl):
The text was updated successfully, but these errors were encountered: