Skip to content

WindowsCopilotRuntime cs-winui sample cannot debug as UnPackaged App #406

@yeelam-gordon

Description

@yeelam-gordon

Repo steps:

  1. Samples\WindowsCopilotRuntime\cs-winui\WindowsCopilotRuntimeSample.sln by vs2022
  2. In the Debug profile, select for "WindowsCopilotRuntime (Unpackaged)
  3. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions