File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ 
3+ sudo apt remove ' dotnet*' 
4+ sudo apt remove ' aspnetcore*' 
Original file line number Diff line number Diff line change 1+ Write-Output  " Starting .NET uninstall on Windows..." 
2+ 
3+ $uninstallToolPath  =  " C:\Program Files\dotnet-core-uninstall\dotnet-core-uninstall.exe" 
4+ $uninstallToolDownloadUrl  =  " https://aka.ms/dotnet-core-uninstall-tool-win" 
5+ 
6+ #  Install uninstall tool
7+ Write-Output  " Downloading .NET Uninstall Tool..." 
8+ $zipPath  =  " $env: TEMP \dotnet-core-uninstall-tool.zip" 
9+ Invoke-WebRequest  - Uri $uninstallToolDownloadUrl  - OutFile $zipPath 
10+ 
11+ Write-Output  " Extracting..." 
12+ Expand-Archive  - Path $zipPath  - DestinationPath " C:\Program Files\dotnet-core-uninstall" - Force
13+ Remove-Item  $zipPath 
14+ 
15+ #  Perform uninstall
16+ Write-Output  " Removing all SDKs and runtimes..." 
17+ &  " $uninstallToolPath " -- all
18+ 
19+ Write-Output  " .NET uninstall process completed." 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments