Open edeustace opened 2 years ago
if anyone else happens to run into this, the [<CLIMutable>]
may help you, it helped me 👀
if anyone else happens to run into this, the
[<CLIMutable>]
may help you, it helped me 👀
How to use it? I have the same issue when publishing a C# project as standalone executable file.
👀
This issue might be separate (at least if you use any options related to assembly stripping), and you might want to tell .NET to not strip stuff you only access through reflection, here's an example in my project using the DynamicDependencyAttribute: https://github.com/profan/brainiac/blob/856c167a12219988f0d458bb448e4c0d7b3ee649/Compiler.fs#L472
dotnet fsi ./test.fsx
Expected: Get cli usage message Actual: Get error message:
fsx script: