mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
build retry bug #606
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @312977 on GitHub (Nov 23, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
9.0.5
3.1
windows 32 x64
Steps to Reproduce:
and then a try electronize build /target win agin ,i get an error:
i must to reatart computer to fix it.
Build Electron Application...
Build ASP.NET Core App for win-x64...
Unhandled exception. System.AggregateException: One or more errors occurred. (The process cannot access the file '\?\D:\code\合智项目\ToolCabinet\obj\desktop\win' because it is being used by another process.)
---> System.IO.IOException: The process cannot access the file '\?\D:\code\合智项目\ToolCabinet\obj\desktop\win' because it is being used by another process.
at System.IO.FileSystem.RemoveDirectoryInternal(String fullPath, Boolean topLevel, Boolean allowDirectoryNotEmpty)
at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
at System.IO.Directory.Delete(String path, Boolean recursive)
at ElectronNET.CLI.Commands.BuildCommand.b__19_0() in C:_WorkRepos\Electron.NET\ElectronNET.CLI\Commands\BuildCommand.cs:line 88
at System.Threading.Tasks.Task
1.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)at System.Threading.Tasks.Task`1.get_Result()
at ElectronNET.CLI.Program.Main(String[] args) in C:_WorkRepos\Electron.NET\ElectronNET.CLI\Program.cs:line 59
@timjnewton commented on GitHub (Sep 22, 2022):
was there a fix for this? Getting a very similar error as above when I run "electronize build /target win". I've installed the latest version of the dotnet SDK (6.0.401) (6.0.9) and have a recent version of Electron : ElectronNET.CLI Version: 13.5.1.0
Any help or pointers appreciated. thanks. Full stack trace is below :-
PS C:\Users\tim\Documents\code\electron-test-app> electronize build /target win
Build Electron Application...
Arguments:
target = win
Build ASP.NET Core App for win-x64...
Unhandled exception. System.AggregateException: One or more errors occurred. (Access to the path '\?\C:\Users\tim\Documents\code\electron-test-app\obj\desktop\win\api' is denied.)
---> System.IO.IOException: Access to the path '\?\C:\Users\tim\Documents\code\electron-test-app\obj\desktop\win\api' is denied.
at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
at System.IO.Directory.Delete(String path, Boolean recursive)
at ElectronNET.CLI.Commands.BuildCommand.b__21_0() in C:_WorkRepos\Electron.NET\ElectronNET.CLI\Commands\BuildCommand.cs:line 96
at System.Threading.Tasks.Task
1.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)at System.Threading.Tasks.Task`1.get_Result()
at ElectronNET.CLI.Program.Main(String[] args) in C:_WorkRepos\Electron.NET\ElectronNET.CLI\Program.cs:line 59
PS C:\Users\tim\Documents\code\electron-test-app> dotnet --version
6.0.401
PS C:\Users\tim\Documents\code\electron-test-app> electronize version
ElectronNET.CLI Version: 13.5.1.0
PS C:\Users\tim\Documents\code\electron-test-app>
@GregorBiswanger commented on GitHub (Mar 28, 2023):
🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!