Repo steps:
- Samples\WindowsCopilotRuntime\cs-winui\WindowsCopilotRuntimeSample.sln by vs2022
- In the Debug profile, select for "WindowsCopilotRuntime (Unpackaged)
- Add this line
<WindowsAppSdkBootstrapInitialize>true</WindowsAppSdkBootstrapInitialize> in the csproj as part of build
Expected:
it can run without problem
Actual:
It failed with exception:
System.ArgumentException: 'Value does not fall within the expected range.' for the code StorageFile.GetFileFromApplicationUriAsync in StorageFileExtensions.cs