Why can't I install Microsoft.UI.Xaml on NuGet packages,,, on Microsoft visual studio community 2022 windows 11 its greyed out I'm making a uwp web browser

Luke Ferguson 26 Reputation points
2023-11-13T07:02:00.4033333+00:00

Screenshot (45)

Why can't I install Microsoft.UI.Xaml on NuGet packages,,, on Microsoft visual studio community 2022 windows 11 its greyed out

I'm making a uwp web browser.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,853 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,268 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,180 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 30,116 Reputation points Microsoft Vendor
    2023-11-13T10:19:53.9366667+00:00

    Hi @Luke Ferguson

    Welcome to Microsoft Q&A! 

    Are you using Package Source Mapping? If no, you can remove all package source mappings by going to Tools > Options > NuGet Package Manager > Package Source Mapping > Remove All

    Meanwhile, you can close all running VS instances and open the NuGet.Config (%APPDATA%\NuGet) file with the Notepad. Then, check the package sources keys as the following:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <packageSources>
        <add key="nuget.org" value=https://api.nuget.org/v3/index.json protocolVersion="3" />
        <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" />
      </packageSources>
      <packageRestore>
        <add key="enabled" value="True" />
        <add key="automatic" value="True" />
      </packageRestore>
      <bindingRedirects>
        <add key="skip" value="False" />
      </bindingRedirects>
      <packageManagement>
        <add key="disabled" value="False" />
      </packageManagement>
    </configuration>
    
    

    Sincerely,

    Anna


    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.

     


  2. Luke Ferguson 26 Reputation points
    2023-11-13T13:01:52.4733333+00:00

    I want to install add Microsoft.UI.Xaml package to NuGet packages,,, as shown in screenshot 1.

    i want to install.it as you can see in screen shot 2 its not installed thats what i want Screenshot (1)

    Screenshot (2)

    0 comments No comments

  3. Luke Ferguson 26 Reputation points
    2023-11-13T13:05:37.17+00:00

    I want to install add Microsoft.UI.Xaml package toScreenshot (1)

    Screenshot (2)

    NuGet packages,,, as shown in screenshot 1.

    i want to install.it as you can see in screen shot 2 its not installed thats what i want

    0 comments No comments

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.