Skip to content

Instantly share code, notes, and snippets.

@kant2002
Last active July 29, 2021 19:08
Show Gist options
  • Save kant2002/56840d38158496fd1134c233322fd416 to your computer and use it in GitHub Desktop.
Save kant2002/56840d38158496fd1134c233322fd416 to your computer and use it in GitHub Desktop.
F# and NativeAOT
source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json
nuget Microsoft.DotNet.ILCompiler ~> 6.0.0-rc.1
Microsoft.DotNet.ILCompiler
<?xml version="1.0" encoding="utf-8" ?>
<Directives>
<Application>
<Assembly Name="FSharp.Core">
<Type Name="Microsoft.FSharp.Core.PrintfImpl+Specializations`3[[System.IO.TextWriter,System.Private.CoreLib],[Microsoft.FSharp.Core.Unit,FSharp.Core],[Microsoft.FSharp.Core.Unit,FSharp.Core]]" Dynamic="Required All">
<Method Name="CaptureFinal1" Dynamic="Required">
<GenericArgument Name="System.Double, System.Private.CoreLib" />
</Method>
<Method Name="OneStepWithArg" Dynamic="Required">
<GenericArgument Name="System.Double, System.Private.CoreLib" />
</Method>
<Method Name="CaptureFinal2" Dynamic="Required">
<GenericArgument Name="System.String, System.Private.CoreLib" />
<GenericArgument Name="System.Double, System.Private.CoreLib" />
</Method>
<Method Name="TwoStepWithArg" Dynamic="Required">
<GenericArgument Name="System.String, System.Private.CoreLib" />
<GenericArgument Name="System.Double, System.Private.CoreLib" />
</Method>
<Method Name="CaptureFinal3" Dynamic="Required">
<GenericArgument Name="System.String, System.Private.CoreLib" />
<GenericArgument Name="System.String, System.Private.CoreLib" />
<GenericArgument Name="System.Double, System.Private.CoreLib" />
</Method>
<Method Name="CaptureFinal2" Dynamic="Required">
<GenericArgument Name="System.Int32, System.Private.CoreLib" />
<GenericArgument Name="System.String, System.Private.CoreLib" />
</Method>
<Method Name="TwoStepWithArg" Dynamic="Required">
<GenericArgument Name="System.Int32, System.Private.CoreLib" />
<GenericArgument Name="System.String, System.Private.CoreLib" />
</Method>
</Type>
</Assembly>
</Application>
</Directives>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment