We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5182f1f commit c0a77fdCopy full SHA for c0a77fd
source/TestAdapter/Discover.cs
@@ -215,7 +215,7 @@ private static string[] GetAllCsFiles(FileInfo[] nfprojFiles)
215
var nfprojContent = File.ReadAllText(nfproj.FullName);
216
217
// get all Compile items from the project file
218
- string compilePattern = "(?><Compile Include=\")(?<source_file>.+)(?>\")";
+ string compilePattern = "<Compile Include=\"(?<source_file>[^\"]+)\"";
219
var compileItems = Regex.Matches(nfprojContent, compilePattern, RegexOptions.IgnoreCase);
220
221
foreach (System.Text.RegularExpressions.Match compileItem in compileItems)
0 commit comments