Skip to content

Microsoft.WindowsAppRuntime.Insights.Resource.dll missing from Foundation package #6387

Closed

Description

Describe the bug

The DLL Microsoft.WindowsAppRuntime.Insights.Resource.dll is missing from the Foundation NuGet package, causing ReleaseInfo and RuntimeInfo APIs to fail.

Steps to reproduce the bug

  1. Create a blank project and install Microsoft.WindowsAppSDK.Foundation package
  2. Call Microsoft.Windows.ApplicationModel.WindowsAppRuntime.ReleaseInfo.AsString
  3. Notice crash on startup

Expected behavior

The test program doesn't crash.

Screenshots

No response

NuGet package version

(Foundation Package) 1.8.260222000

Packaging type

Packaged (MSIX)

Windows version

No response

IDE

No response

Additional context

This doesn't happen if the user has the Runtime NuGet package installed since that package will extract all Framework MSIX package contents (including Microsoft.WindowsAppRuntime.Insights.Resource.dll), which will make this functionality work.

Activity

  1. aepot commented on Apr 18, 2026

    @aepot

    Probably related: #6071

  2. hippieZhou commented on May 14, 2026

    @hippieZhou

    I also got the same exception since I upgraded Microsoft.WindowsAppSDK from 1.8.260317003 to 2.0.1

    Image
  3. amadeo-alex commented on May 28, 2026

    @amadeo-alex

    Each time I upgrade WindowsAppSDK something breaks, come one m$.
    Same, self-contained.

  4. hippieZhou commented on Jun 21, 2026

    @hippieZhou

    I can share a workaround I used in my App.

    1. Add the following config in xxx.csproj:
    <WindowsAppSdkIncludeVersionInfo>true</WindowsAppSdkIncludeVersionInfo>
    
    1. Refer to the sample code below:
    public static string WinAppSdkDetails => $"Windows App SDK {Microsoft.WindowsAppSDK.Release.Major}.{Microsoft.WindowsAppSDK.Release.Minor}";
    
    public static string RuntimeInfoAsString => $"Windows App Runtime {Microsoft.WindowsAppSDK.Runtime.Version.DotQuadString}";
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-MetapackageTopics related to the Windows App SDK NuGet metapackage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions