-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add support for .net 4.5 data annotations #2435
base: master
Are you sure you want to change the base?
Conversation
Looks like the mono bug wasn't fixed like I thought. For now I'm going to back out that commit. |
I take that back, the mono bug was fixed. This is something new that's not the same between implementations. |
Mono uses Microsoft/referencesource for their implementation, but Microsoft never published the resx file to here. Because of that the resource names are being returned instead of the actual resource string. https://github.com/dotnet/corefx/issues/8201 reporting the inconsistency |
@thecodejunkie or @khellang based on the milestone added to my corefx issue the resource strings won't make it into an official release until November 2016, plus however long to make it into mono. Should I just turn those tests off on mono for now, or would it be better to update the tests to check if the result is the expected message or the resource name instead of just the message? Either would get this to pass on mono. |
I think they should just be turned off (like already did, right?), since this is essentially hitting a mono bug. Also: The PR needs a rebase :) Otherwise it looks good. |
I see, we're using SharedAssemblyInfo.cs now. I'll fix that after dinner. |
Yup it's gone On Friday, 5 August 2016, Brian Surowiec [email protected] wrote:
|
BrowserFixture.cs#L441-L461 that's passing locally but failed on TeamCity |
I know. No idea why On Friday, 5 August 2016, Brian Surowiec [email protected] wrote:
|
There's another issue or PR that suggests it's this On Friday, 5 August 2016, Jonathan Channon [email protected]
|
Travis failed because of this test which isn't even related TeamCity is failing because of #2578 |
There was an adapter missing for EnumDataTypeAttribute so instead of sending in another PR I just made it part of this one. |
Not sure if anyone has been following https://github.com/dotnet/corefx/issues/8201 but it seems like there's a long ways to go before mono will get proper resource strings for data annotations. They're even holding off on using CoreFX because of feature parity. Guess we'll be keeping these tests turned off for the foreseeable future. Is there anything holding this PR up now? I've tried to keep on top of rebasing when master changes but I'm not sure if there's anything preventing it from being merged now aside from the disabled tests on mono. |
These are disabled for now because of mono's implementation missing the resource strings. Once Microsoft fixes this in the reference source code, and mono pulls it in, then we'll be able to turn these back on.
Rebased and ready for review again. The new changes since this was last looked at are adding support for Once this is pulled in I'd like to send in another PR for Fluent Validation that adds support for v7 (the sample project depends on it which is why I'm waiting). Do we want to talk about those changes first or just send in the changes and we can take it from there? |
Prerequisites
Description
This is an almost exact copy/paste of xt0rted/Nancy.Validation.DataAnnotations.Extensions. I updated the coding style in some areas, but didn't carry over what was in the sample project.
I also removed a prior mono hack since we're targeting versions which fix the bug we were working around.
The tests I carried over used a base class so I didn't duplicate the setup code. If you'd like that removed say the word.
This fixes #1577