File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -197,19 +197,19 @@ private void DoInitialize()
197197 }
198198 }
199199
200- [ GeneratedRegex ( "<PackageReference.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
200+ [ GeneratedRegex ( "(?<!<!--.*) <PackageReference.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
201201 private static partial Regex PackageReference ( ) ;
202202
203- [ GeneratedRegex ( "<FrameworkReference.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
203+ [ GeneratedRegex ( "(?<!<!--.*) <FrameworkReference.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
204204 private static partial Regex FrameworkReference ( ) ;
205205
206- [ GeneratedRegex ( "<(.*\\ s)?Project.*\\ sSdk=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
206+ [ GeneratedRegex ( "(?<!<!--.*) <(.*\\ s)?Project.*\\ sSdk=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
207207 private static partial Regex ProjectSdk ( ) ;
208208
209- [ GeneratedRegex ( "<Using.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
209+ [ GeneratedRegex ( "(?<!<!--.*) <Using.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
210210 private static partial Regex CustomImplicitUsingDeclarations ( ) ;
211211
212- [ GeneratedRegex ( "<Import.*\\ sProject=\" .*Microsoft\\ .CSharp\\ .targets\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
212+ [ GeneratedRegex ( "(?<!<!--.*) <Import.*\\ sProject=\" .*Microsoft\\ .CSharp\\ .targets\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
213213 private static partial Regex MicrosoftCSharpTargets ( ) ;
214214 }
215215
You can’t perform that action at this time.
0 commit comments