I am using XUnit in a new ASP.NET 5 class library and trying to use Assert.Matches but keep getting the following error from intellisense:
The type 'Regex' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Text.RegularExpressions....'
I am currently only targeting the dnx451 framework. Any idea why I am getting this error? I tried adding System.Text.RegularExpressions as a dependency in project.json and then all of my code errors out.