File tree Expand file tree Collapse file tree 5 files changed +26
-15
lines changed Expand file tree Collapse file tree 5 files changed +26
-15
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <configuration >
3
+ <packageSources >
4
+ <clear />
5
+ <add key =" nuget" value =" https://api.nuget.org/v3/index.json" />
6
+ <add key =" arcade" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
7
+ </packageSources >
8
+ </configuration >
Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
using System . Collections . Generic ;
5
+ using System . Linq ;
5
6
6
7
namespace ApiDocsSync . PortToTripleSlash
7
8
{
@@ -59,6 +60,8 @@ public static string DocIdEscaped(this string docId) =>
59
60
// Checks if the passed string is considered "empty" according to the Docs repo rules.
60
61
public static bool IsDocsEmpty ( this string ? s ) =>
61
62
string . IsNullOrWhiteSpace ( s ) || s == Configuration . ToBeAdded ;
63
+
64
+ public static bool HasItems < T > ( this IEnumerable < T > src ) => src ? . Any ( ) ?? false ;
62
65
}
63
66
64
67
}
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ private async Task CollectSymbolLocationsFromReferencedProjectsAsync(DocsType do
191
191
}
192
192
}
193
193
194
- if ( ! docsType . SymbolLocations . Any ( ) )
194
+ if ( ! docsType . SymbolLocations . HasItems ( ) )
195
195
{
196
196
Log . Error ( $ "No symbols found for docs type '{ docsType . DocId } '.") ;
197
197
}
Original file line number Diff line number Diff line change 11
11
</ItemGroup >
12
12
13
13
<ItemGroup >
14
- <PackageReference Include =" Microsoft.Build" Version =" 17.2 .0" ExcludeAssets =" Runtime" />
15
- <PackageReference Include =" Microsoft.Build.Framework" Version =" 17.2 .0" ExcludeAssets =" Runtime" />
16
- <PackageReference Include =" Microsoft.Build.Locator" Version =" 1.4.1 " />
17
- <PackageReference Include =" Microsoft.CodeAnalysis" Version =" 4.3 .0-2.final" />
18
- <PackageReference Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 3.3.4-beta1.22310 .1" >
14
+ <PackageReference Include =" Microsoft.Build" Version =" 17.4 .0" ExcludeAssets =" Runtime" />
15
+ <PackageReference Include =" Microsoft.Build.Framework" Version =" 17.4 .0" ExcludeAssets =" Runtime" />
16
+ <PackageReference Include =" Microsoft.Build.Locator" Version =" 1.5.5 " />
17
+ <PackageReference Include =" Microsoft.CodeAnalysis" Version =" 4.5 .0-2.final" />
18
+ <PackageReference Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 3.3.4-beta1.22559 .1" >
19
19
<PrivateAssets >all</PrivateAssets >
20
20
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
21
21
</PackageReference >
22
- <PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 4.3 .0-2.final" />
23
- <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Workspaces" Version =" 4.3 .0-2.final" />
24
- <PackageReference Include =" Microsoft.CodeAnalysis.Workspaces.MSBuild" Version =" 4.3 .0-2.final" />
25
- <PackageReference Include =" System.Text.Encoding.CodePages" Version =" 7.0.0-preview.6.22324.4 " />
22
+ <PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 4.5 .0-2.final" />
23
+ <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Workspaces" Version =" 4.5 .0-2.final" />
24
+ <PackageReference Include =" Microsoft.CodeAnalysis.Workspaces.MSBuild" Version =" 4.5 .0-2.final" />
25
+ <PackageReference Include =" System.Text.Encoding.CodePages" Version =" 7.0.0" />
26
26
</ItemGroup >
27
27
28
28
</Project >
Original file line number Diff line number Diff line change 28
28
</ItemGroup >
29
29
30
30
<ItemGroup >
31
- <PackageReference Include =" Microsoft.Build" Version =" 17.2 .0" ExcludeAssets =" Runtime" />
32
- <PackageReference Include =" Microsoft.Build.Framework" Version =" 17.2 .0" ExcludeAssets =" Runtime" />
33
- <PackageReference Include =" Microsoft.DotNet.XUnitExtensions" Version =" 8.0.0-beta.22579.2 " />
34
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.4 .0-preview-20220707-01 " />
35
- <PackageReference Include =" System.Text.Encoding.CodePages" Version =" 7.0.0-preview.6.22324.4 " />
31
+ <PackageReference Include =" Microsoft.Build" Version =" 17.4 .0" ExcludeAssets =" Runtime" />
32
+ <PackageReference Include =" Microsoft.Build.Framework" Version =" 17.4 .0" ExcludeAssets =" Runtime" />
33
+ <PackageReference Include =" Microsoft.DotNet.XUnitExtensions" Version =" 8.0.0-beta.23060.7 " />
34
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.5 .0-preview-20221221-03 " />
35
+ <PackageReference Include =" System.Text.Encoding.CodePages" Version =" 7.0.0" />
36
36
<PackageReference Include =" xunit" Version =" 2.4.2" />
37
37
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.5" >
38
38
<PrivateAssets >all</PrivateAssets >
You can’t perform that action at this time.
0 commit comments