Skip to content

Instantly share code, notes, and snippets.

@dsyme
Created March 1, 2022 21:42
Show Gist options
  • Save dsyme/d05a143cbc586c45df1c0055070a8ccf to your computer and use it in GitHub Desktop.
Save dsyme/d05a143cbc586c45df1c0055070a8ccf to your computer and use it in GitHub Desktop.
F# 7
1. For FSharp.Core
- assembly size reduced by 1MB
- resource blob FSharpMetadata containing zipped optdata + sigdata 320KB
- (name of this data)
- F# 7 compiler reads this blob
- extra file FSharp.Core.sigdata in nuget containing unzipped sigdata for consumption by F# 6 compilers
- extra file FSharp.Core.optdata in nuget containing unzipped optdata for consumption by F# 6 compilers
2. Add option "/zipmetadata".
- <ZipMetadata> is in new project files by default in F# 7 compilations.
- Only adds FSharpMetadata blob.
- Assemblies are unusbale by F# 6 compilers
- If you want assemblies usable by F# then remove ZipMetadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment