简体   繁体   中英

When will Mono support System.ComponentModel.DataAnnotations?

I've been trying asp.net mvc on mono and the data annotation throws a not implemented exception, does anyone know when will Mono support this?

According to this page http://www.go-mono.com/status/status.aspx?reference=4.0&profile=4.0&assembly=System.ComponentModel.DataAnnotations , it's almost finished...

You don't mention which data annotation(s) you are using, but Mono 2.8 is supposed to have more of them completed than Mono 2.6.7.

Mono 2.8 Preview Build: http://mono.ximian.com/monobuild/preview/download-preview/

The final of Mono 2.8 will likely be out next week.

Your other options are to not use them in your MVC code, or implement the ones you need that Mono does not have. Most of them should be pretty trivial to implement.

If you want to use this functionality now, then copy System.ComponentModel.DataAnnotations.dll (MS.NET version 3.5.0.0) into your bin folder. It needs to be assembly version 3.5.0.0, because version 4.0.0.0 didn't worked for me (even with mono 2.8 from trunk).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM