microsoft / WindowsAppSDK-Samples

Feature samples for the Windows App SDK
MIT License
742 stars 229 forks source link

MIssing DLL for Restart ?? #274

Open sjb-sjb opened 1 year ago

sjb-sjb commented 1 year ago

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

sjb-sjb commented 1 year ago

I didn't figure out the cause of this but I got it to go away by copying the code into a fresh project.