File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
posix-only/standalone_dependencies
windows-only/standalone_dependencies Expand file tree Collapse file tree 4 files changed +6
-7
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
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ public void TestFileContent1()
4343 "<PackageReference Include=\" DotNetAnalyzers.DocumentationAnalyzers\" Version=\" 1.0.0-beta.59\" PrivateAssets=\" all\" />" ,
4444 "<PackageReference Version=\" 7.0.0\" Include=\" Microsoft.CodeAnalysis.NetAnalyzers\" PrivateAssets=\" all\" />" ,
4545 "<PackageReference Include=\" StyleCop.Analyzers\" Version=\" 1.2.0-beta.406\" >" ,
46+ "<!-- <PackageReference Include=\" NUnit\" Version=\" 3.10.1\" /> -->" ,
4647 "<FrameworkReference Include=\" My.Framework\" />"
4748 } ;
4849 var fileContent = new TestFileContent ( lines ) ;
Original file line number Diff line number Diff line change 169169| /microsoft.netcore.app.ref/7.0.2/ref/net7.0/mscorlib.dll |
170170| /microsoft.netcore.app.ref/7.0.2/ref/net7.0/netstandard.dll |
171171| /newtonsoft.json/12.0.1/lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.dll |
172- | /nunit/3.13.3/lib/netstandard2.0/nunit.framework.dll |
Original file line number Diff line number Diff line change 213213| /microsoft.windowsdesktop.app.ref/7.0.2/ref/net7.0/WindowsBase.dll |
214214| /microsoft.windowsdesktop.app.ref/7.0.2/ref/net7.0/WindowsFormsIntegration.dll |
215215| /newtonsoft.json/12.0.1/lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.dll |
216- | /nunit/3.13.3/lib/netstandard2.0/nunit.framework.dll |
You can’t perform that action at this time.
0 commit comments