Skip to content

Commit

Permalink
Fsdk/Misc: obsolete FsxOnlyArgs & rm more !LEGACY
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Aug 24, 2023
1 parent 7f8faa5 commit d992ad7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Fsdk/Misc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ open System.Xml.XPath

module Misc =

#if LEGACY_FRAMEWORK
let private FileMatchesIfArgumentIsAPath(argument: string, file: FileInfo) =
try
FileInfo(argument).FullName.Equals(file.FullName)
Expand All @@ -36,7 +37,6 @@ module Misc =
with
| _ -> false

#if LEGACY_FRAMEWORK
// this below is crazy but is to avoid # char being ignored in Uri.LocalPath property, see https://stackoverflow.com/a/41203269
let private currentExeUri =
let entryAssembly = Assembly.GetEntryAssembly()
Expand Down Expand Up @@ -94,6 +94,7 @@ module Misc =
args
#endif

[<Obsolete "Use Environment.GetCommandLineArgs() yourself, or fsi.CommandLineArgs">]
let FsxOnlyArguments() =
let cmdLineArgs = Environment.GetCommandLineArgs() |> List.ofSeq
#if !LEGACY_FRAMEWORK
Expand Down

0 comments on commit d992ad7

Please sign in to comment.