Search code examples
mdriven

ESType error when ModelDrivenControllerBase is using to call MDrivenEcoSpaceAndModelForNetStandard


a code MyController:ModelDrivenControllerBase<EcoProject1EcoSpace> in the mvc or webapi netcore project shows a error "the type 'MDrivenTemplateProj.EcoProject1EcoSpace' cannot be used as type parameter 'ESType' in the generic type or method 'ModelDrivenControllerBase<ESType>'. There is no implicit reference conversion from 'MDrivenTemplateProj.EcoProject1EcoSpace' to 'Eco.Handles.DefaultEcospace" + annoying request to add ref to the 'MDriven.Handles.netStandard, version=7.0.0.0, culture=neutral, publickeytoken=null'. (always version 7.0.0.0!)
Could you please advise how to avoid such kind of errors?
I'm trying to develop the webapi netcore 3.1 app that has ref to MDrivenEcoSpaceAndModelForNetStandard project using the NetFramework 4.x. experience.
Seems that is it wrong way for the netcore project.
Thank you!


Solution

  • Brand new MDriven packages on nuget targeting .netStandard2.1 and .net5 available now. They have correct build version numbers, and are more granular in packages than the old Eco package.

    https://wiki.mdriven.net/index.php/MVC

    https://www.nuget.org/packages?q=MDriven*