page_type | languages | products | name | urlFragment | description | extendedZipContent | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
Windows Copilot Runtime |
WindowsCopilotRuntime |
Shows how to use the Windows Copilot Runtime |
|
An app that demonstrates how to use the Windows Copilot Runtime with WinUI.
- See System requirements for Windows app development.
- Make sure that your development environment is set up correctly—see Install tools for developing apps for Windows 10 and Windows 11.
- Use a Copilot+ PC
- Detailed instructions : Set up your development environment to build Windows Copilot Runtime APIs
To get the latest updates to Windows and the development tools, and to help shape their development, join the Windows Insider Program.
- Open the solution file (
.sln
) in Visual Studio. - From Visual Studio, either Start Without Debugging (Ctrl+F5) or Start Debugging (F5).
- This project is not designed to be fully functional in an unpackaged app. However, Windows Copilot Runtime does support unpackaged app.
- To enable proper startup as an unpackaged app, you need to bootstrap the Windows App SDK either Programmatically or By adding the following configuration to the
.csproj
file during the build process:
<WindowsAppSdkBootstrapInitialize>true</WindowsAppSdkBootstrapInitialize>
- Alternatively, if you are using the Developer Command Prompt for Visual Studio, you can run the app as an ARM64 version using the following command, with the bootstrap property provided:
dotnet run -p:Configuration=Debug -p:Platform=ARM64 -p:WindowsPackageType=None -p:WindowsAppSdkBootstrapInitialize=true