Search code examples
postsharp

PostSharp string.Normalize not working


I have PostSharp 4.2 enabled on my project.

Also, I have a test project with some integration tests that need to use some classes from PostSharp. So I have PostSharp on my test project.

Issue:

var text = "usuário"; 
Assert.AreNotEqual(text.Length, text.Normalize(NormalizationForm.FormD).Length);

This test works only if PostSharp build is disabled on my test project.


Solution

  • The issue was fixed in PostSharp 4.2.24.