CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule
Unable to move PACKAGE DIST error
- Lingua principale
- C#
- Stelle
- 55
- Fork
- 19
- Merge medio
- 40m
- PR unite (30g)
- 1
Descrizione
### 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
```text
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Reproduce the intermittent failure by building the WASM head in an experiment, then inspect Uno.Wasm.Bootstrap.targets at line 175 and ShellTask.cs around lines 1282-1287, where dist_work is moved into the final dist directory. Determine why the Windows directory move is denied and document or verify a resolution or workaround; a successful build and deployment is the done condition.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, wasm
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100