dennisroche / xunit.ioc.autofac

XUnit2 Test Framework implementation with Autofac
MIT License
20 stars 9 forks source link

Issue with core project #14

Open michalejoye opened 6 years ago

michalejoye commented 6 years ago

I am getting this error when I using nuget Package 'xunit.ioc 1.1.3' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'.

dennisroche commented 6 years ago

@michalejoye sorry for the slow reply; hopefully you have worked through the error.

At the moment, this project only supports .NET Core (netstandard1.6) and .NET 4.5 (net4.52) as you can see in the project.

If you want, we can update the project to netstandard2.0 and that should work for net461.

Can I ask why you want to use DI in your tests? I've personally moved away from this approach as it added complexity the our testing.

ravenboilinux commented 6 years ago

We use DI in our testing to support mocking our Services and Repos. ASP.Net MVC Core really makes DI a first class citizen. We have moved away from the ASP.Net MVC Core DI system to AutoFac