22using System . IO ;
33using System . Windows ;
44using System . Reflection ;
5- using System . Diagnostics ;
65using System . Collections . Generic ;
6+ using GitHub . VisualStudio ;
77
88namespace 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