Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit f0d964c

Browse files
committed
Use VsOutputLogger and .sln default to VS 2015
1 parent 3eefff6 commit f0d964c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/GitHub.UI/Helpers/LoadingResourceDictionary.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
using System.IO;
33
using System.Windows;
44
using System.Reflection;
5-
using System.Diagnostics;
65
using System.Collections.Generic;
6+
using GitHub.VisualStudio;
77

88
namespace GitHub
99
{
@@ -29,7 +29,7 @@ void EnsureAssemblyLoaded(Uri value)
2929
var assemblyName = FindAssemblyNameFromPackUri(value);
3030
if (assemblyName == null)
3131
{
32-
Trace.WriteLine("Couldn't find assembly name in: " + value);
32+
VsOutputLogger.WriteLine($"Couldn't find assembly name in '{value}'.");
3333
return;
3434
}
3535

@@ -42,7 +42,7 @@ void EnsureAssemblyLoaded(Uri value)
4242

4343
if (!File.Exists(assemblyFile))
4444
{
45-
Trace.WriteLine("Couldn't find assembly at: " + assemblyFile);
45+
VsOutputLogger.WriteLine($"Couldn't find assembly at '{assemblyFile}'.");
4646
return;
4747
}
4848

@@ -51,21 +51,21 @@ void EnsureAssemblyLoaded(Uri value)
5151
}
5252
catch(Exception e)
5353
{
54-
Trace.WriteLine($"Error loading assembly for '{value}': {e}");
54+
VsOutputLogger.WriteLine($"Error loading assembly for '{value}': {e}");
5555
}
5656
}
5757

5858
static string FindAssemblyNameFromPackUri(Uri packUri)
5959
{
6060
var path = packUri.LocalPath;
61-
if(!path.StartsWith("/"))
61+
if (!path.StartsWith("/"))
6262
{
6363
return null;
6464
}
6565

6666
var component = ";component/";
6767
int componentIndex = path.IndexOf(component, 1);
68-
if(componentIndex == -1)
68+
if (componentIndex == -1)
6969
{
7070
return null;
7171
}

0 commit comments

Comments
 (0)