Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant build / execute build with WindowsAppSDK.1.6.241114003 #4944

Open
tpoint75 opened this issue Dec 9, 2024 · 2 comments
Open

Cant build / execute build with WindowsAppSDK.1.6.241114003 #4944

tpoint75 opened this issue Dec 9, 2024 · 2 comments
Assignees
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged)

Comments

@tpoint75
Copy link

tpoint75 commented Dec 9, 2024

Describe the bug

Cant build / execute build with WindowsAppSDK.1.6.241114003:

Steps to reproduce the bug

With

<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
<AppxPackage>true</AppxPackage>

I get at building the exe:
Das Ziel "CreateReadyToRunImages" ist im Projekt nicht vorhanden. D:\Projects\source\Harp\packages\Microsoft.WindowsAppSDK.1.6.241114003\build\Microsoft.Build.Msix.Packaging.targets

and with

<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
<WindowsPackageType>None</WindowsPackageType>

it breaks in UndockedRegFreeWinRT-AutoInitializer.cpp
after
static HMODULE dll{ LoadLibraryExW(L"Microsoft.WindowsAppRuntime.dll", nullptr, 0) };
with if(dll) ..
But the Microsoft.WindowsAppRuntime.dll is located in the same folder as the exe!

It only works with:
<WindowsAppSDKSelfContained>false</WindowsAppSDKSelfContained>

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

@tpoint75
Copy link
Author

tpoint75 commented Dec 9, 2024

Is this #4857 the same issue?

@RDMacLachlan RDMacLachlan added area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) and removed needs-triage labels Dec 9, 2024
@RDMacLachlan
Copy link
Member

This appears to be similar to the following, and will be investigated to confirm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged)
Projects
None yet
Development

No branches or pull requests

3 participants