[MAUI] How to update Microsoft.Windows.SDK.BuildTools from 22000 to 22621

Sunshine 46 Reputation points
2022-09-19T08:21:57.047+00:00

MAUI project restricts the Microsoft.Windows.SDK.BuildTools version to be 22000. However, many features and bug fixes are presented in 22621. Even if I add the latest WindowsAppSDK and set the target framework of Windows to be 22621, the Windows.SDK.BuildTools is still restricted to be the 22000 version.

Are there any way to update this nuget package?

Thanks.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,314 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,270 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 73,681 Reputation points Microsoft Vendor
    2022-09-20T02:59:42.45+00:00

    Hello,

    Are there any way to update this nuget package?

    Yes, you can use dotnet CLI to install a specific version of a package

    Firstly, please open command line or PowerShell, then use cd and your project path to navigate to your project.

    For example, I have project called MauiCollectionView and project path is "C:\Users\username\source\repos\MauiCollectionView\MauiCollectionView\", we can use the following command line to navigate it.

       cd C:\Users\username\source\repos\MauiCollectionView\MauiCollectionView\  
    

    Then you can use following dotnet CLI to update Microsoft.Windows.SDK.BuildTools from 22000 to 22621

       dotnet add package Microsoft.Windows.SDK.BuildTools --version 10.0.22621.1  
    

    Best Regards,

    Leon Lu


    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.