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()
197
197
}
198
198
}
199
199
200
- [ GeneratedRegex ( "<PackageReference.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
200
+ [ GeneratedRegex ( "(?<!<!--.*) <PackageReference.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
201
201
private static partial Regex PackageReference ( ) ;
202
202
203
- [ GeneratedRegex ( "<FrameworkReference.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
203
+ [ GeneratedRegex ( "(?<!<!--.*) <FrameworkReference.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
204
204
private static partial Regex FrameworkReference ( ) ;
205
205
206
- [ GeneratedRegex ( "<(.*\\ s)?Project.*\\ sSdk=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
206
+ [ GeneratedRegex ( "(?<!<!--.*) <(.*\\ s)?Project.*\\ sSdk=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
207
207
private static partial Regex ProjectSdk ( ) ;
208
208
209
- [ GeneratedRegex ( "<Using.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
209
+ [ GeneratedRegex ( "(?<!<!--.*) <Using.*\\ sInclude=\" (.*?)\" .*/?>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
210
210
private static partial Regex CustomImplicitUsingDeclarations ( ) ;
211
211
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 ) ]
213
213
private static partial Regex MicrosoftCSharpTargets ( ) ;
214
214
}
215
215
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ public void TestFileContent1()
43
43
"<PackageReference Include=\" DotNetAnalyzers.DocumentationAnalyzers\" Version=\" 1.0.0-beta.59\" PrivateAssets=\" all\" />" ,
44
44
"<PackageReference Version=\" 7.0.0\" Include=\" Microsoft.CodeAnalysis.NetAnalyzers\" PrivateAssets=\" all\" />" ,
45
45
"<PackageReference Include=\" StyleCop.Analyzers\" Version=\" 1.2.0-beta.406\" >" ,
46
+ "<!-- <PackageReference Include=\" NUnit\" Version=\" 3.10.1\" /> -->" ,
46
47
"<FrameworkReference Include=\" My.Framework\" />"
47
48
} ;
48
49
var fileContent = new TestFileContent ( lines ) ;
Original file line number Diff line number Diff line change 169
169
| /microsoft.netcore.app.ref/7.0.2/ref/net7.0/mscorlib.dll |
170
170
| /microsoft.netcore.app.ref/7.0.2/ref/net7.0/netstandard.dll |
171
171
| /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 213
213
| /microsoft.windowsdesktop.app.ref/7.0.2/ref/net7.0/WindowsBase.dll |
214
214
| /microsoft.windowsdesktop.app.ref/7.0.2/ref/net7.0/WindowsFormsIntegration.dll |
215
215
| /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