microsoft / microsoft/WindowsAppSDK
Issue using WinAppSDK Phi Silica Features in a DLL Build
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 471
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 28
Description
Describe the bug
I am trying to create an AI Shell agent to use the phi silica model using the WinAppSDK but running into an issue when I try to load the DLL i build with AI Shell.
I tried this work around https://github.com/CommunityToolkit/dotnet/issues/923#issuecomment-2314444048 but all it does is change the version from 2.2.0.0 to 2.1.0.0 in the error message.
Steps to reproduce the bug
- Build the code at https://github.com/StevenBucher98/phisilicaagent
- Install AI Shell
- Put the built dll in the
.aish\agents\phisilicaconsolefolder, you will need to create the phisilicaconsole folder, the naming has to match the name of the dll. - Start AI Shell by running
aish - Choose the
phiconsoleagent and try to type a command
Expected behavior
Able to call the phi silica model from AI Shell
Screenshots
No response
NuGet package version
Windows App SDK 1.7 Experimental 3: 1.7.250127003-experimental3
Packaging type
Unpackaged
Windows version
Windows 11 version 24H2 (22621, October 2024 Update)
IDE
Visual Studio 2022
Additional context
I am on Copilot+ PC and was able to call phi silica agent using a test console app so confirm the model is there an working.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by building the linked phisilicaagent project, placing its DLL in the specified .aish\agents\phisilicaconsole folder, and reproducing the failure through aish. Compare the DLL-loaded agent with the working test console app while checking the Windows App SDK 1.7 Experimental 3 packaging and dependency behavior. Done means the Phi Silica agent loads in AI Shell and can invoke the model.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, powershell
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 34/100