Unable to move PACKAGE DIST error
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- csharp, wasm
- 領域
- build-system
研究方向
透過在實驗中建置 WASM head 來重現間歇性失敗,然後檢查第 175 行的 Uno.Wasm.Bootstrap.targets,以及第 1282-1287 行附近的 ShellTask.cs,其中 dist_work 會被移動到最終的 dist 目錄。確定 Windows 目錄移動遭拒的原因,並記錄或驗證解決方案或 workaround;成功完成建置和部署即為完成條件。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
Seem to always see this on first run, sometimes more often. We should ensure we update or see if there's a resolution or workaround for this somewhere...
Steps to reproduce
Build WASM head (not the IIS one) in an experiment, get this issue sometimes (usually on first run, sometimes more frequently):
5>C:\Users\mhawker\.nuget\packages\uno.wasm.bootstrap\3.3.1\build\Uno.Wasm.Bootstrap.targets(175,5): error : System.ApplicationException: Unable to move PACKAGE DIST H:\code\CommunityToolkitWindows\components\Converters\heads\Wasm\obj\Debug\net5.0\dist_work to H:\code\CommunityToolkitWindows\components\Converters\heads\Wasm\bin\Debug\net5.0\dist\package_153e6e3933bc5d07d488f97e23bf3e5b69d0c95a: System.IO.IOException: Access to the path 'H:\code\CommunityToolkitWindows\components\Converters\heads\Wasm\obj\Debug\net5.0\dist_work' is denied.
5>C:\Users\mhawker\.nuget\packages\uno.wasm.bootstrap\3.3.1\build\Uno.Wasm.Bootstrap.targets(175,5): error : at System.IO.Directory.InternalMove(String sourceDirName, String destDirName, Boolean checkHost)
5>C:\Users\mhawker\.nuget\packages\uno.wasm.bootstrap\3.3.1\build\Uno.Wasm.Bootstrap.targets(175,5): error : at Uno.Wasm.Bootstrap.ShellTask_vfc89b40db92a14b8f04d4c5c9c72690bdcd7b878.PrepareFinalDist() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 1282 ---> System.IO.IOException: Access to the path 'H:\code\CommunityToolkitWindows\components\Converters\heads\Wasm\obj\Debug\net5.0\dist_work' is denied.
5>C:\Users\mhawker\.nuget\packages\uno.wasm.bootstrap\3.3.1\build\Uno.Wasm.Bootstrap.targets(175,5): error : at System.IO.Directory.InternalMove(String sourceDirName, String destDirName, Boolean checkHost)
5>C:\Users\mhawker\.nuget\packages\uno.wasm.bootstrap\3.3.1\build\Uno.Wasm.Bootstrap.targets(175,5): error : at Uno.Wasm.Bootstrap.ShellTask_vfc89b40db92a14b8f04d4c5c9c72690bdcd7b878.PrepareFinalDist() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 1282
5>C:\Users\mhawker\.nuget\packages\uno.wasm.bootstrap\3.3.1\build\Uno.Wasm.Bootstrap.targets(175,5): error : --- End of inner exception stack trace ---
5>C:\Users\mhawker\.nuget\packages\uno.wasm.bootstrap\3.3.1\build\Uno.Wasm.Bootstrap.targets(175,5): error : at Uno.Wasm.Bootstrap.ShellTask_vfc89b40db92a14b8f04d4c5c9c72690bdcd7b878.PrepareFinalDist() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 1287
5>C:\Users\mhawker\.nuget\packages\uno.wasm.bootstrap\3.3.1\build\Uno.Wasm.Bootstrap.targets(175,5): error : at Uno.Wasm.Bootstrap.ShellTask_vfc89b40db92a14b8f04d4c5c9c72690bdcd7b878.Execute() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 234
### Expected behavior
Builds and deploys without issue
### Screenshots
_No response_
### Code Platform
- [ ] UWP
- [ ] WinAppSDK / WinUI 3
- [X] Web Assembly (WASM)
- [ ] Android
- [ ] iOS
- [ ] MacOS
- [ ] Linux / GTK
### Windows Build Number
- [ ] Windows 10 1809 (Build 17763)
- [ ] Windows 10 1903 (Build 18362)
- [ ] Windows 10 1909 (Build 18363)
- [ ] Windows 10 2004 (Build 19041)
- [ ] Windows 10 20H2 (Build 19042)
- [ ] Windows 10 21H1 (Build 19043)
- [ ] Windows 11 21H2 (Build 22000)
- [ ] Other (specify)
### Other Windows Build number
_No response_
### App minimum and target SDK version
- [ ] Windows 10, version 1809 (Build 17763)
- [ ] Windows 10, version 1903 (Build 18362)
- [ ] Windows 10, version 1909 (Build 18363)
- [ ] Windows 10, version 2004 (Build 19041)
- [ ] Other (specify)
### Other SDK version
_No response_
### Visual Studio Version
_No response_
### Visual Studio Build Number
_No response_
### Device form factor
_No response_
### Additional context
_No response_
### Help us help you
No, I'm unable to contribute a solution.
- 主要語言
- C#
- 星號
- 57
- 分支
- 20
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CommunityToolkit/Tooling-Windows-Submodule 的其他 Issue
-
Running WASM on All Solution Doesn't work in VS可能重新可做 @Arlodotexe 於 245 天前認領,目前沒有進行中的 PR。 未關閉bug :bug: build :fire: regression sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#307 · 2 則留言 · 已指派 1 人 ·
-
GenerateAllSolution with only wasm target won't build可能重新可做 @Arlodotexe 於 245 天前認領,目前沒有進行中的 PR。 未關閉bug :bug: build :fire: sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#306 · 1 則留言 · 已指派 1 人 ·
-
bug :bug:
難度 2/5 1-3 小時 新手友好度 55/100
-
Add basic usage docs for Build-Toolkit-Docs.ps1 script可能重新可做 @Arlodotexe 於 597 天前認領,目前沒有進行中的 PR。 未關閉documentation :page_with_curl: low difficulty powershell
CommunityToolkit/Tooling-Windows-Submodule#282 · 已指派 1 人 ·
-
bug :bug: regression testing 🏗
難度 4/5 3-5 天 新手友好度 35/100
查看 CommunityToolkit/Tooling-Windows-Submodule 的全部 Issue
相似的 Issue
-
area: core bug help wanted ready
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
area: remote bug
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
難度 2/5 1-3 小時 新手友好度 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
A: Mapping P3: Standard T: New Feature
難度 2/5 1-3 小時 新手友好度 68/100
space-wizards/space-station-14#46878 · 2 則留言 ·
維護者通常 1 天內回覆