Skip to content

Commit 2be8e14

Browse files
authored
Update SourceBrowser and fix build command to not fail (#74)
1 parent e63b37a commit 2be8e14

File tree

13 files changed

+29
-29
lines changed

13 files changed

+29
-29
lines changed

src/SourceBrowser.hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f17e41ea339189d6cf3355bd0edc0a6da59e64e0
1+
308ba8f368eff530cba7587a2a46364f7d80cc1f

src/SourceBrowser/src/Common/Common.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<DefineConstants>$(DefineConstants);NET472</DefineConstants>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.Build" Version="16.6.0" />
13-
<PackageReference Include="System.Reactive" Version="4.1.5" />
12+
<PackageReference Include="Microsoft.Build" Version="16.8.0" />
13+
<PackageReference Include="System.Reactive" Version="5.0.0" />
1414
</ItemGroup>
1515
</Project>

src/SourceBrowser/src/HtmlGenerator/HtmlGenerator.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<PropertyGroup>
1515
<NuGetPackageId>SourceBrowser</NuGetPackageId>
1616
<NuSpecFile>$(MSBuildProjectDirectory)\$(NuGetPackageId).nuspec</NuSpecFile>
17-
<NuGetVersion>1.0.33</NuGetVersion>
18-
<NuGetVersionRoslyn>3.8.0-3.final</NuGetVersionRoslyn>
17+
<NuGetVersion>1.0.34</NuGetVersion>
18+
<NuGetVersionRoslyn>3.9.0-2.final</NuGetVersionRoslyn>
1919
</PropertyGroup>
2020
<ItemGroup>
2121
<Reference Include="..\..\lib\Microsoft.CodeAnalysis.Workspaces.Desktop.dll" />
@@ -38,13 +38,13 @@
3838
<ItemGroup>
3939
<PackageReference Include="ExceptionAnalysis.Diagnostics" Version="1.0.0.39796" />
4040
<PackageReference Include="ManagedEsent" Version="2.0.0" />
41-
<PackageReference Include="Microsoft.Build" Version="16.6.0" ExcludeAssets="runtime" />
42-
<PackageReference Include="Microsoft.Build.Framework" Version="16.6.0" ExcludeAssets="runtime" />
41+
<PackageReference Include="Microsoft.Build" Version="16.8.0" ExcludeAssets="runtime" />
42+
<PackageReference Include="Microsoft.Build.Framework" Version="16.8.0" ExcludeAssets="runtime" />
4343
<PackageReference Include="Microsoft.Build.Locator" Version="1.2.6" />
44-
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.6.0" ExcludeAssets="runtime" />
45-
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.6.0" ExcludeAssets="runtime" />
44+
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.8.0" ExcludeAssets="runtime" />
45+
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.8.0" ExcludeAssets="runtime" />
4646
<PackageReference Include="Microsoft.CodeAnalysis" Version="$(NuGetVersionRoslyn)" />
47-
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.0.0">
47+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2">
4848
<PrivateAssets>all</PrivateAssets>
4949
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
5050
</PackageReference>
@@ -56,9 +56,9 @@
5656
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Features" Version="$(NuGetVersionRoslyn)" />
5757
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="$(NuGetVersionRoslyn)" />
5858
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="$(NuGetVersionRoslyn)" />
59-
<PackageReference Include="MSBuild.StructuredLogger" Version="2.1.133" />
59+
<PackageReference Include="MSBuild.StructuredLogger" Version="2.1.215" />
6060
<PackageReference Include="GuiLabs.Language.Xml" Version="1.2.46" />
61-
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="16.4.280" />
61+
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="16.8.239" />
6262
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
6363
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.9.0" />
6464
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0-beta-20204-02" PrivateAssets="All" />

src/SourceBrowser/src/HtmlGenerator/Pass1-Generation/ProjectGenerator.MetadataToSourceRedirect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Microsoft.SourceBrowser.HtmlGenerator
99
public partial class ProjectGenerator
1010
{
1111
/// <summary>
12-
/// Since the only requirement on the ID strings we use in the a.html file
12+
/// Since the only requirement on the ID strings we use in the A.html file
1313
/// is that there are no collisions (and even if there are, the failure
1414
/// would be rare and impact would be limited), we don't really need 16
1515
/// bytes per ID. Let's just store the first 8 bytes (I've actually calculated

src/SourceBrowser/src/HtmlGenerator/Pass1-Generation/ProjectGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private Task GenerateDocument(Document document)
213213

214214
private void GenerateIndex()
215215
{
216-
Log.Write("Index.html...");
216+
Log.Write("index.html...");
217217
var index = Path.Combine(ProjectDestinationFolder, "index.html");
218218
var sb = new StringBuilder();
219219
Markup.WriteProjectIndex(sb, Project.AssemblyName);

src/SourceBrowser/src/HtmlGenerator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private static void Main(string[] args)
189189

190190
if (Paths.SolutionDestinationFolder == null)
191191
{
192-
Paths.SolutionDestinationFolder = Path.Combine(Microsoft.SourceBrowser.Common.Paths.BaseAppFolder, "Index");
192+
Paths.SolutionDestinationFolder = Path.Combine(Microsoft.SourceBrowser.Common.Paths.BaseAppFolder, "index");
193193
}
194194

195195
var websiteDestination = Paths.SolutionDestinationFolder;

src/SourceBrowser/src/HtmlGenerator/Utilities/DeclaredSymbolInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public bool Equals(DeclaredSymbolInfo other)
8787
Description == other.Description;
8888
}
8989

90-
public string GetUrl() => "/" + AssemblyName + "/a.html#" + Serialization.ULongToHexString(ID);
90+
public string GetUrl() => "/" + AssemblyName + "/A.html#" + Serialization.ULongToHexString(ID);
9191

9292
public override bool Equals(object obj)
9393
{

src/SourceBrowser/src/HtmlGenerator/Utilities/Markup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public static string GetResultsHtmlPrefix()
342342
public static string GetResultsHtmlSuffix(bool emitSolutionBrowserLink)
343343
{
344344
var solutionExplorerLink = emitSolutionBrowserLink
345-
? @"<div class=""note"">Try also browsing the <a href=""solutionexplorer.html"" class=""blueLink"">solution explorer</a>.</div>"
345+
? @"<div class=""note"">Try also browsing the <a href=""SolutionExplorer.html"" class=""blueLink"">solution explorer</a>.</div>"
346346
: null;
347347

348348
return "</div></div>" + solutionExplorerLink + "</body></html>";
@@ -444,19 +444,19 @@ private static string GetGlyph(DeclaredSymbolInfo symbol)
444444
var result = symbol.Glyph;
445445
if (result == 196)
446446
{
447-
return "CSharp";
447+
return "csharp";
448448
}
449449
else if (result == 195)
450450
{
451-
return "VB";
451+
return "vb";
452452
}
453453
else if (result == 227)
454454
{
455455
return "xaml";
456456
}
457457
else if (result == 228)
458458
{
459-
return "TypeScript";
459+
return "typescript";
460460
}
461461

462462
return result.ToString();

src/SourceBrowser/src/SourceIndexServer/Models/DeclaredSymbolInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public bool Equals(DeclaredSymbolInfo other)
7070

7171
public string GetUrl()
7272
{
73-
return "/" + AssemblyName + "/a.html#" + Serialization.ULongToHexString(ID);
73+
return "/" + AssemblyName + "/A.html#" + Serialization.ULongToHexString(ID);
7474
}
7575

7676
public override bool Equals(object obj)

src/SourceBrowser/src/SourceIndexServer/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public Startup(IWebHostEnvironment env)
2121
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
2222
public void ConfigureServices(IServiceCollection services)
2323
{
24-
RootPath = Path.Combine(Environment.ContentRootPath, "Index");
24+
RootPath = Path.Combine(Environment.ContentRootPath, "index");
2525

26-
var subfolder = Path.Combine(RootPath, "Index");
26+
var subfolder = Path.Combine(RootPath, "index");
2727
if (File.Exists(Path.Combine(subfolder, "Projects.txt")))
2828
{
2929
RootPath = subfolder;

0 commit comments

Comments
 (0)