WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

The procedure entry point 'DCompPrivates_*' was not found in the Microsoft.UI.Input.dll

Open djonasdev opened this issue 2 years ago • 3 comments

Describe the bug

After upgrading my project from v1.0.3 to v1.1.0 - v1.1.2 I get this error message.

Steps to reproduce the bug

See sample project file

Expected behavior

No response

Screenshots

grafik

NuGet package version

1.1.1

Packaging type

Unpackaged

Windows version

Windows 10 version 21H2 (19044, November 2021 Update)

IDE

Visual Studio 2022

Additional context

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net6.0-windows10.0.18362.0</TargetFramework>
    <TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
    <RootNamespace>Haprotec.WinUI.UI.ControlStation</RootNamespace>
    <ApplicationManifest>app.manifest</ApplicationManifest>
    <Platforms>x86;x64;arm64</Platforms>
    <RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
    <PublishProfile>win10-$(Platform).pubxml</PublishProfile>
    <UseWinUI>true</UseWinUI>
    <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
    <WindowsPackageType>None</WindowsPackageType>
    <SupportedOSPlatformVersion>10.0.18362.0</SupportedOSPlatformVersion>
  </PropertyGroup>
  <PropertyGroup>
    <!--https://github.com/dotnet/maui/issues/5886-->
    <WinUISDKReferences>false</WinUISDKReferences>
    <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
    <GenerateLibraryLayout>true</GenerateLibraryLayout>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="CommunityToolkit.WinUI.UI" Version="7.1.2" />
    <PackageReference Include="CommunityToolkit.WinUI.UI.Controls" Version="7.1.2" />
    <PackageReference Include="CommunityToolkit.WinUI.UI.Controls.DataGrid" Version="7.1.2" />
    <PackageReference Include="HtOPC.Local" Version="3.2.0" />
    <PackageReference Include="Lamar" Version="8.0.1" />
    <PackageReference Include="Lamar.Microsoft.DependencyInjection" Version="8.0.1" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.5" />
    <PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
    <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="6.0.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
    <PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0" />
    <PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
    <PackageReference Include="NLog.Extensions.Hosting" Version="5.0.1" />
    <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.1.1" />
    <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.197" />
    <PackageReference Include="NLog" Version="5.0.1" />
    <PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
    <PackageReference Include="ReactiveUI" Version="18.0.10" />
    <PackageReference Include="ReactiveUI.Fody" Version="18.0.10" />
    <PackageReference Include="ReactiveUI.WinUI" Version="18.0.10" />
    <Manifest Include="$(ApplicationManifest)" />
  </ItemGroup>

djonasdev avatar Jul 05 '22 07:07 djonasdev

I have the same error

lautaro170 avatar Jul 07 '22 16:07 lautaro170

Can you provide a simple reproducible example? Your sample requires a local package (HtOPC.Local) and removing it (and fixing a few other errors) results in an example that does not reproduce the issue.

Do you have code in your app that is using anything from Microsoft.UI.Input?

riverar avatar Jul 07 '22 17:07 riverar

I'm wondering if somehow the app is still running against the 1.0 runtime? This shouldn't happen, but if you can check that would help immensely. Can check in a debugger and see where it's loading app sdk binaries from? The file path should have the package version/name in it.

Thanks,

Ben

BenJKuhn avatar Jul 07 '22 19:07 BenJKuhn