Package missing in offline source

Emmanuel James 20 Reputation points
2024-04-03T15:44:17.9166667+00:00
  1. Microsoft.Windows.SDK.NET.Ref
  2. Microsoft.AspNetCore.App.Runtime.win-x64
  3. Microsoft.WindowsDesktop.App.Runtime.win-x64
  4. Microsoft.NETCore.App.Runtime.win-x64

so i am new to winui and i just installed the required things for winui desktop
i installed the .net 6 sdk from a separate installer but other than that i installed from the visual studio installer so the above mentioned packages are missing in the Offline package source. I will give all the error msgs if anyone knows how to fix it pls help

Severity Code Description Project File Line Suppression State

Error NU1101 Unable to find package Microsoft.Windows.SDK.NET.Ref. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Offline App5 C:\Users\emman\source\repos\App5\App5\App5.csproj 1

Error NU1101 Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Offline App5 C:\Users\emman\source\repos\App5\App5\App5.csproj 1

Error NU1101 Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Offline App5 C:\Users\emman\source\repos\App5\App5\App5.csproj 1

Error NU1101 Unable to find package Microsoft.NETCore.App.Runtime.win-x64. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Offline App5 C:\Users\emman\source\repos\App5\App5\App5.csproj 1

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,618 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
726 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 48,486 Reputation points
    2024-04-03T16:23:22.5033333+00:00

    This is NuGet packages, not VS packages that you install. NuGet packages are downloaded automatically when a build occurs. Based upon the error it seems like you're missing the official package source but there could be something else going on.

    1. What type of project did you create?
    2. You are getting these errors when you build correct?
    3. In Visual Studio open Package Manager Console (under Tools \ NuGet Package Manager).
      1. What package sources do you have listed?
      2. Type Find-Package Microsoft.Windows.SDK.NEt.Ref and verify it returns stuff.

    The packages you mentioned are normally not referenced directly in your builds but indirectly based upon the SDK your project was created with. If you're referencing these packages directly in your project then that is a problem. Sharing with us your project information would help clarify this.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful