Skip to content

NetStandard workaround for MissingResolver issue plus other cleanups - #41

Merged
Travis Jensen (TravisOnGit) merged 1 commit into
masterfrom
feature/MissingResolverWorkaround
Mar 2, 2021
Merged

Travis Jensen (TravisOnGit) merged 1 commit into
masterfrom
feature/MissingResolverWorkaround

Conversation

@TravisOnGit

Copy link
Copy Markdown
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

@TravisOnGit Travis Jensen (TravisOnGit) Mar 2, 2021 •

Copy link
Copy Markdown
Member Author

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.

@zhengmu zhengmu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:shipit:

@TravisOnGit
Travis Jensen (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