Commit 08a9a87
committed
fix(#693 app): 修复开发者模式下添加插件失败的问题
MSIX 安装目录(C:\Program Files\WindowsApps\...)是只读的,
而插件 XAML 热重载暂存目录 HotReloadRoot 之前放在 AppContext.BaseDirectory 下,
导致 PrepareResourceRoot 创建目录时抛出 UnauthorizedAccessException。
改为使用 AppStoragePaths.LocalDataPath(已正确处理 MSIX/便携/无包身份三种情况)。1 parent 805c55f commit 08a9a87
2 files changed
Lines changed: 4 additions & 3 deletions
File tree
- .kilocode/rules
- GalgameManager/Services/PluginService
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments