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

NetStandard workaround for MissingResolver issue plus other cleanups #41

Merged
merged 1 commit into from
Mar 2, 2021

Conversation

TravisOnGit
Copy link
Member

There's a known issue with NetStandard/NetCore when overriding the MetadataReferenceResolver. I worked around this by using conditional compilation to only use the MissingResolver when the target framework is Net462.

Added PackageTags to csproj for better discoverability in NuGet.

Fixing up some random warnings.

{
ScriptOptions scriptOptions = ScriptOptions.Default.WithMetadataResolver(new MissingResolver());
ScriptOptions scriptOptions = ScriptOptions.Default;
#if NET462
Copy link
Member Author

@TravisOnGit TravisOnGit Mar 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: Only actual change is here.

Copy link
Collaborator

@zhengmu zhengmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@TravisOnGit TravisOnGit merged commit 307215d into master Mar 2, 2021
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.

2 participants