Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly assign user-provided FSI args and target netstandard when appropriate #504

Merged

Conversation

baronfel
Copy link
Contributor

@baronfel baronfel commented Nov 13, 2019

Fixes #503 by fixing how we assign FSI options for netcore.

For netcore/netfx we should always explicitly provide the targetprofile, because the impacts how reference resolution works (ie which primary assembly we look for and key off of), and we should also provide any static additional arguments as the 'otherFlags' argument.

In addition, we need to explicitly not provide an mscorlib reference when targeting netstandard, as that re-enables some of the legacy paths.

Finally, there was a bug in the handling of the 'replace refs' function that was overwriting all of the OtherOptions instead of modifying just the framework refs.

@baronfel baronfel changed the title filter out the weird parse/script errors Correctly assign user-provided FSI args and target netstandard when appropriate Nov 13, 2019
@baronfel baronfel force-pushed the fix-weird-script-ref-errors branch 2 times, most recently from a60d6c1 to a80b08d Compare November 13, 2019 03:18
For netcore/netfx we should always explicitly provide the targetprofile,
because the impacts how reference resolution works (ie which primary
assembly we look for and key off of), and we should also provide any
static additional arguments as the 'otherFlags' argument.

In addition, we need to explicitly not provide an mscorlib reference
when targeting netstandard, as that re-enables some of the legacy paths.

Finally, there was a bug in the handling of the 'replace refs' function
that was overwriting all of the OtherOptions instead of modifying just
the framework refs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More scripting reference issues
2 participants