File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System . Diagnostics ;
2- using System . IO ;
3- using System . IO . Compression ;
4- using System . Net . Http ;
2+ using global :: System . IO ;
3+ using global :: System . IO . Compression ;
4+ using global :: System . Net . Http ;
55using WinHome . Interfaces ;
66using WinHome . Models . Plugins ;
77using WinHome . Services . Bootstrappers ;
@@ -145,7 +145,7 @@ public async Task EnsurePluginsInstalledAsync(IEnumerable<string> configuredPlug
145145
146146 try
147147 {
148- using var client = new System . Net . Http . HttpClient ( ) ;
148+ using var client = new HttpClient ( ) ;
149149 client . DefaultRequestHeaders . UserAgent . ParseAdd ( "WinHome-CLI" ) ;
150150
151151 var zipUrl = "https://github.com/DotDev262/WinHome/archive/refs/heads/main.zip" ;
@@ -161,7 +161,7 @@ public async Task EnsurePluginsInstalledAsync(IEnumerable<string> configuredPlug
161161 }
162162
163163 var tempExtractPath = Path . Combine ( Path . GetTempPath ( ) , $ "winhome-extract-{ Guid . NewGuid ( ) } ") ;
164- System . IO . Compression . ZipFile . ExtractToDirectory ( tempZipPath , tempExtractPath ) ;
164+ ZipFile . ExtractToDirectory ( tempZipPath , tempExtractPath ) ;
165165
166166 var extractedPluginsDir = Path . Combine ( tempExtractPath , "WinHome-main" , "plugins" ) ;
167167 if ( Directory . Exists ( extractedPluginsDir ) )
You can’t perform that action at this time.
0 commit comments