File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -73,5 +73,21 @@ let inline internal fakeContextAssembly () =
7373/// Gets the FAKE version no.
7474let fakeVersion = fakeContextAssembly() .GetName() .Version.ToString()
7575
76+ let getPlatform () =
77+ match System.Reflection.Assembly.GetExecutingAssembly() with
78+ | null -> " "
79+ | x ->
80+ match x.GetCustomAttributes( typeof< System.Runtime.Versioning.TargetFrameworkAttribute>, false ) with
81+ | null -> " "
82+ | itms when itms.Length > 0 ->
83+ ( itms |> Seq.head :?> System.Runtime.Versioning.TargetFrameworkAttribute)
84+ .FrameworkName
85+ | _ -> " "
86+
7687/// Gets the FAKE Version string
77- let fakeVersionStr = sprintf " FAKE 6 - F# Make (%s )" fakeVersion
88+ let fakeVersionStr =
89+ sprintf
90+ " FAKE %i - F# Make (%s ) (running on %s )"
91+ ( fakeContextAssembly() .GetName() .Version.Major)
92+ fakeVersion
93+ ( getPlatform ())
You can’t perform that action at this time.
0 commit comments