ipjohnson / Grace

Grace is a feature rich dependency injection container library
MIT License
336 stars 33 forks source link

Method not found in Grace.Net #203

Closed silkfire closed 5 years ago

silkfire commented 5 years ago

@ipjohnson I've downloaded the Grace.Net package as I wanted to use the Types.FromThisAssembly() method, but it throws an exception:

image

Could this have to do with that the package is incompatible with .NET Core?

SuperJMN commented 5 years ago

It's not there. It's probably removed or renamed.

@ipjohnson BTW, I wrote you a e-mail message. Is your old Yahoo account alive? :)

ipjohnson commented 5 years ago

Hi guys, Grace.Net was there just to do some assembly scanning for .net. When I re-wrote Grace for .net standard it some of the features weren't supported so I didn't continue to develop it.

Now that .net standard 2.0 support the features it was missing I could bring it back but there really wasn't much there other than scanning the currently loaded assemblies for exports.

@SuperJMN my email is still the same and I replied to say hi :)

sgf commented 5 years ago

Hi guys, Grace.Net was there just to do some assembly scanning for .net. When I re-wrote Grace for .net standard it some of the features weren't supported so I didn't continue to develop it.

Now that .net standard 2.0 support the features it was missing I could bring it back but there really wasn't much there other than scanning the currently loaded assemblies for exports.

@SuperJMN my email is still the same and I replied to say hi :)

Just Update the Docoment https://github.com/ipjohnson/Grace/wiki/Fluent-Configuration and tell us witch the lastest way how to Bulk/Batch Register types

ipjohnson commented 5 years ago

Will do

moalamri commented 2 years ago

Types.FromThisAssembly() can be replaced with Assembly.GetExecutingAssembly().GetTypes()