We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cf6b6b commit 68c904eCopy full SHA for 68c904e
src/Fornax/Fornax.fs
@@ -274,8 +274,13 @@ let main argv =
274
0
275
| Some Version ->
276
let assy = Assembly.GetExecutingAssembly()
277
- let v = assy.GetCustomAttributes<AssemblyVersionAttribute>() |> Seq.head
278
- printfn "%s" v.Version
+ let version =
+ assy.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
279
+ |> Option.ofObj
280
+ |> Option.map _.InformationalVersion
281
+ |> Option.defaultValue (assy.GetName().Version.ToString())
282
+
283
+ printfn "%s" version
284
285
| Some Clean ->
286
let publ = Path.Combine(cwd, "_public")
0 commit comments