Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net nuke build nuke.tmp\shell-completion.yml被另一个进程阻止_.net_Dotnetnuke - Fatal编程技术网

.net nuke build nuke.tmp\shell-completion.yml被另一个进程阻止

.net nuke build nuke.tmp\shell-completion.yml被另一个进程阻止,.net,dotnetnuke,.net,Dotnetnuke,我有4.7.NETFramework项目,并尝试使用Nuke0.24.11构建它。当我开始写剧本的时候 /build.ps1——目标npm——配置发布——客户名称“Demo”——环境名称“Prod” (不依赖于目标内容)我收到错误进程无法访问文件'C:..tmp\shell completion.yml',因为它正被另一个进程使用 仅当我使用以下属性时,它才对我重复: [TeamCity( TeamCityAgentPlatform.Windows, CleanCheckoutDirecto

我有4.7.NETFramework项目,并尝试使用Nuke0.24.11构建它。当我开始写剧本的时候

/build.ps1——目标npm——配置发布——客户名称“Demo”——环境名称“Prod”

(不依赖于目标内容)我收到错误进程无法访问文件'C:..tmp\shell completion.yml',因为它正被另一个进程使用

仅当我使用以下属性时,它才对我重复:

[TeamCity(
 TeamCityAgentPlatform.Windows,
 CleanCheckoutDirectory = false,
 VcsTriggeredTargets = new[] { nameof(Test), nameof(DeployBackend), nameof(DeployFrontend) },
 NightlyTriggeredTargets = new[] { nameof(Test), nameof(DeployBackend), nameof(DeployFrontend) })]
[AzurePipelines(
 AzurePipelinesImage.UbuntuLatest,
 AzurePipelinesImage.WindowsLatest,
 AzurePipelinesImage.MacOsLatest,
 InvokedTargets = new[] { nameof(Test), nameof(DeployBackend), nameof(DeployFrontend) })]
internal class Build : NukeBuild {
  ...
}
核日志:

进程无法访问文件“..tmp\shell completion.yml” 因为它正被另一个进程使用。在 System.IO.FileStream.ValidateFileHandle(SafeFileHandle文件句柄)
在System.IO.FileStream.CreateFileOpenHandle(FileMode模式,FileShare System.IO.FileStream..ctor(字符串)上的共享、文件选项 路径、文件模式、文件访问访问、文件共享共享、Int32 缓冲区大小、文件选项)位于 System.IO.StreamWriter.ValidateArgsAndOpenPath(字符串路径,布尔值 附加、编码、Int32缓冲区大小)在 System.IO.StreamWriter..ctor(字符串路径)位于 System.IO.File.WriteAllText(字符串路径,字符串内容)位于 Nuke.Common.Execution.HandleShellCompletionAttribute.OnBeforeLogo(NukeBuild 在Nuke.Common.Execution.BuildManager.c_uudisplayClass5_0上构建,IReadOnlyCollection
1可执行目标
x) 在
Nuke.Common.Utilities.Collections.EnumerableExtensions.ForEach[T](IEnumerable
1可枚举,Action
1 Action)位于 Nuke.Common.Execution.BuildManager.c_uu显示Class5_0
1.g_uexecuteExtension | 1[TExtension](操作
1操作)位于 Nuke.Common.Execution.BuildManager.Execute[T](表达式'1[] defaultTargetExpressions)

AzurePipelines配置文件已更改。 #1/1:进程“dotnet.exe”已退出,代码为-1

“C:\Program Files\dotnet\dotnet.exe”…\build\bin\Debug\u build.dll--生成配置TeamCity --东道主TeamCity@E:

在 Nuke.Common.Tooling.ProcessExtensions.AssertZeroExitCode(IPProcess 过程)在 Nuke.Common.CI.HandleConfiguration生成属性.InvokeGeneration(IConfigurationGenerator 发电机)在 System.Linq.Parallel.FORALOPERATOR
1.FORALLEMENUMER
1.MoveNext(输入& currentElement、Int32和currentKey)位于 System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork()位于 System.Linq.Parallel.SpoolingTaskBase.Work()位于 位于的System.Linq.Parallel.QueryTask.BaseWork(未使用的对象) System.Linq.Parallel.QueryTask.c.b_uu10_u0(对象o)at 位于的System.Threading.Tasks.Task.InnerInvoke() 位于的System.Threading.Tasks.Task.c.b_u274_0(对象obj) System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(线程 threadPoolThread,ExecutionContext ExecutionContext,ContextCallback 回调(对象状态) ---来自引发异常的上一个位置的堆栈结束跟踪---在 System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(线程 threadPoolThread,ExecutionContext ExecutionContext,ContextCallback 回调,对象状态)在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(任务& currentTaskSlot,线程池线程(线程)

重复出现警告和错误:AzurePipelines配置文件 改变。 #1/1:进程“dotnet.exe”已退出,代码为-1

“C:\Program Files\dotnet\dotnet.exe”…\build\bin\Debug\u build.dll--生成配置TeamCity --东道主TeamCity@E: