
[英]MSB4018 The “GenerateServiceWorkerAssetsManifest” task failed unexpectedly
[英]Azure Function: MSB4018: The "GenerateFunctions" task failed unexpectedly
重建 Azure Function 解决方案时出现以下错误
error MSB4018: The "GenerateFunctions" task failed unexpectedly.
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Microsoft.NET.Sdk.Functions.Tasks.GenerateFunctions.Execute() in /_/src/Microsoft.NET.Sdk.Functions.MSBuild/Tasks/GenerateFunctions.cs:line 46
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
我正在使用 Microsoft Visual Studio Enterprise 2022(64 位)- 当前版本 17.3.3
<TargetFramework>net6.0</TargetFramework>
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.1.0" />
尝试清除 nuget 缓存,从 %userprofile%.nuget\packages\microsoft.net.sdk.functions\ 中删除包
当这最初开始时,我能够通过重新安装 VS 来解决这个问题。 但同样的错误开始出现。 这次即使重新安装也不能解决问题。
请帮忙
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.