microsoft / microsoft/WindowsAppSDK-Samples

MIssing DLL for Restart ??

Open
#274 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1k
Forks
335
Avg merge
5d 1h
Merged PRs (30d)
8

Description

I downloaded the Samples and built the Restart / cs-winui-packaged project. But it could not deploy, I got a message saying that a dll could not be copied, Microsoft.Windows.ApplicaitonModel.DynamicDependency.Projection.dll.

The directory is there, it's the DLL that's missing. Where is it supposed to come from?
What am I missing, do I need a nuget package of some kind?

Exact message is:
Error DEP1000: Cannot copy file "C:\Users\steve.nuget\packages\microsoft.windowsappsdk\1.2.221109.1\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll" to layout "C:\Users\steve\OneDrive\Documents\VS Projects\WindowsAppSDK-Samples-main\Samples\AppLifecycle\Restart\cs-winui-packaged\cs-winui-packaged\bin\x64\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll". DirectoryNotFoundException - Could not find a part of the path 'C:\Users\steve\OneDrive\Documents\VS Projects\WindowsAppSDK-Samples-main\Samples\AppLifecycle\Restart\cs-winui-packaged\cs-winui-packaged\bin\x64\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll'.

[0x80070003] cs-winui-packaged

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by building and deploying Samples/AppLifecycle/Restart/cs-winui-packaged, then inspect its Microsoft.WindowsAppSDK package reference and the reported bin/x64/Debug/net6.0-windows10.0.19041.0/win10-x64/AppX output path. Compare that output with the package path containing Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll. Done means the sample deploys without DEP1000 or DirectoryNotFoundException.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.