romantitov / MockQueryable

Mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc
MIT License
791 stars 77 forks source link

DotNet5.0 Compatibility #35

Closed ibwStef closed 4 years ago

ibwStef commented 4 years ago

Tried upgrading to .net5.0 preview6 .

I get the following error: System.IO.FileNotFoundException : Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.

After Installing Microsoft.Bcl.AsyncInterfaces from Nuget I get: System.TypeLoadException : Could not load type 'Microsoft.EntityFrameworkCore.Query.Internal.IAsyncQueryProvider' from assembly 'Microsoft.EntityFrameworkCore, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

romantitov commented 4 years ago

Hello @ibwStef, thank you for your feedback. I'm planning to add support .Net 5 after official release.

romantitov commented 4 years ago

@ibwStef I've made packages v5.0.0-preview.7 for new version of .Net 5 https://www.nuget.org/packages/MockQueryable.Moq/5.0.0-preview.7. Also there is a special brunch https://github.com/romantitov/MockQueryable/tree/Dotnet5.0 For current moment this is all what can I do.

ibwStef commented 4 years ago

@romantitov Thank you, that is totally fine.