How to download .NET SDK workloads for later installation?

Vasya Pupkin 40 Reputation points
2024-09-04T19:54:00.21+00:00

dotnet workload -h doesn't list a download option. How do you download workloads instead of installing them right away?

Thanks

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,798 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiale Xue - MSFT 44,501 Reputation points Microsoft Vendor
    2024-09-05T02:13:20.92+00:00

    Hi @Vasya Pupkin , Welcome to Microsoft Q&A,

    To download .NET workloads, you can use the dotnet workload command option. This allows you to download the workload files . Here’s how you can do it:

    1. Download Workload Packs: Use the following command to download the workload:
         
         dotnet workload install <workload-id> 
         
      

    (To view all available workload IDs, you can use the following command to list all workloads supported in your current .NET SDK version:

    dotnet workload search
    

    )

    Replace <workload-id> with the actual workload identifier (e.g., android, ios, maui, etc.).

    1. Install the Downloaded Workload Later: Once the workloads are downloaded, you can install them at a later time by running:
      
         dotnet workload install
      
      
    2. Check Installed Workloads: To verify which workloads are installed, use:
      
         dotnet workload list
      
      

    This approach is useful if you want to pre-download workloads and handle installation separately. Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.