jbogard / MediatR

Simple, unambitious mediator implementation in .NET
Apache License 2.0
11k stars 1.16k forks source link

Verson 12.0.1 supports .net standard 2.0? #898

Closed jpmartinez-polstudios closed 1 year ago

jpmartinez-polstudios commented 1 year ago

I'm attempting to use MediatR on a .netstandard project but it seems like I keep getting a MissingMethodException, but looking at the history it seems like you didn't support .netstandard 2.0 but now you do, according to the nuget package dependencies. Is this accurate? Is there something else I might be doing wrong?

asimmon commented 1 year ago

MediatR does support .NET Standard 2.0, as mentioned in the NuGet.org dependencies.

MediatR implementation is quite simple and doesn't use any framework-specific .NET APIs. It only targets .NET 6.0 to remove the dependency on Microsoft.Bcl.AsyncInterfaces which is already included in this version.

You should provide some details about your exception stacktrace, I believe the error happens in your code and not MediatR.

image

no1melman commented 1 year ago

I'm attempting to use MediatR on a .netstandard project but it seems like I keep getting a MissingMethodException, but looking at the history it seems like you didn't support .netstandard 2.0 but now you do, according to the nuget package dependencies. Is this accurate? Is there something else I might be doing wrong?

What missing method? have you got a lot more information you publish, there's not really anything to go on here.

jpmartinez-polstudios commented 1 year ago

Sorry for the lack of information, most of it was because I didn't have much to go off of. Became apparent that it was having dll issues with Revit. I was creating a revit plugin and I guess it didn't like it. But eventually got it working when I switched from Rider back to visual studio, wiped the bin/obj folders, and added the dll to the base revit folder. But definitely not an issue from MediatR.