Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/Compiler/Driver/CompilerOptions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1233,9 +1233,10 @@ let noFrameworkFlag isFsc tcConfigB =
"noframework",
tagNone,
OptionUnit(fun () ->
tcConfigB.implicitlyReferenceDotNetAssemblies <- false

// When the compilation is not fsi do nothing.
// It is just not a usefull option when running fsi on the coreclr or the desktop framework really.
if isFsc then
tcConfigB.implicitlyReferenceDotNetAssemblies <- false
tcConfigB.implicitlyResolveAssemblies <- false),
None,
Some(FSComp.SR.optsNoframework ())
Expand All @@ -1251,7 +1252,6 @@ let advancedFlagsFsi tcConfigB =
None,
Some(FSComp.SR.optsClearResultsCache ())
)
noFrameworkFlag false tcConfigB
]

let advancedFlagsFsc tcConfigB =
Expand Down Expand Up @@ -1852,7 +1852,8 @@ let deprecatedFlagsBoth tcConfigB =
)
]

let deprecatedFlagsFsi tcConfigB = deprecatedFlagsBoth tcConfigB
let deprecatedFlagsFsi tcConfigB =
[ noFrameworkFlag false tcConfigB; yield! deprecatedFlagsBoth tcConfigB ]

let deprecatedFlagsFsc tcConfigB =
deprecatedFlagsBoth tcConfigB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//<Expects status="success">section='- ADVANCED - ' ! option=utf8output kind=OptionUnit</Expects>
//<Expects status="success">section='- ADVANCED - ' ! option=fullpaths kind=OptionUnit</Expects>
//<Expects status="success">section='- ADVANCED - ' ! option=lib kind=OptionStringList</Expects>
//<Expects status="success">section='- ADVANCED - ' ! option=noframework kind=OptionUnit</Expects>
//<Expects status="success">section='NoSection ' ! option=noframework kind=OptionUnit</Expects>
//<Expects status="success">section='NoSection ' ! option=typedtree kind=OptionUnit</Expects>
//<Expects status="success">section='NoSection ' ! option=typedtreefile kind=OptionUnit</Expects>
//<Expects status="success">section='NoSection ' ! option=typedtreestamps kind=OptionUnit</Expects>
Expand Down Expand Up @@ -123,6 +123,7 @@
//<Expects status="notin">section='- ADVANCED - ' ! option=standalone kind=OptionUnit</Expects>
//<Expects status="notin">section='- ADVANCED - ' ! option=staticlink kind=OptionString</Expects>
//<Expects status="notin">section='- ADVANCED - ' ! option=pdb kind=OptionString</Expects>
//<Expects status="notin">section='- ADVANCED - ' ! option=noframework kind=OptionUnit</Expects>
//<Expects status="notin">section='NoSection ' ! option=generatehtml kind=OptionUnit</Expects>
//<Expects status="notin">section='NoSection ' ! option=htmloutputdir kind=OptionString</Expects>
//<Expects status="notin">section='NoSection ' ! option=htmlcss kind=OptionString</Expects>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ Usage: fsiAnyCpu <options> [script.fsx [<arguments>]]
Default - mscorlib
--clearResultsCache Clear the package manager results
cache
--noframework Do not reference the default CLI
assemblies by default
--exec Exit fsi after loading the files or
running the .fsx script given on the
command line
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ Usage: fsiAnyCpu <options> [script.fsx [<arguments>]]
Default - mscorlib
--clearResultsCache Clear the package manager results
cache
--noframework Do not reference the default CLI
assemblies by default
--exec Exit fsi after loading the files or
running the .fsx script given on the
command line
Expand Down