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

Fix TinyIoC for use in dotnetstandard builds #119

Merged
merged 1 commit into from
Aug 18, 2018

Conversation

alisonaquinas-old
Copy link
Contributor

I think this duplicates a small bit of the work done by #106 but this was the most minimal change set I could make for a build complete for me when adding TinyIoC.cs to a new .NET Standard 1.0 project.

I may be off base, but I thought this might save someone 5 minutes.

@@ -361,7 +361,7 @@ public static Type[] SafeGetTypes(this Assembly assembly)

#if PORTABLE || NETSTANDARD1_0 || NETSTANDARD1_1 || NETSTANDARD1_2
[Flags]
internal enum BindingFlags {
Copy link
Contributor Author

@alisonaquinas-old alisonaquinas-old Nov 3, 2017

Choose a reason for hiding this comment

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

BindingFlags was being used in by public methods' arguments

@@ -4246,7 +4246,7 @@ public static Assembly Assembly(this Type type)
}
#endif
// reverse shim for WinRT SR changes...
#if (!NETFX_CORE && !PORTABLE && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 || !NETSTANDARD1_6)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This and the ReverseTypeExtender above were both being compiled in and colliding

@niemyjski niemyjski merged commit 7113157 into grumpydev:master Aug 18, 2018
@niemyjski
Copy link
Collaborator

Thanks for the PR

gkarabin pushed a commit to gkarabin/TinyIoC that referenced this pull request Apr 16, 2020
Fix TinyIoC for use in dotnetstandard builds
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.

3 participants