Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
712 views
in Technique[技术] by (71.8m points)

.net - The "CreateAppHost" task failed unexpectedly. #15495

I have built a web project in VS 2019, worked a lot witout problems on that (Asp.Net Core 5.0) Web App and suddenly it started to appear an error on that Web Project:

Error MSB4018

The "CreateAppHost" task failed unexpectedly. Microsoft.NET.HostModel.HResultException: 800703EE at Microsoft.NET.HostModel.AppHost.HostWriter.<>c__DisplayClass2_0.g__UpdateResources|1() at Microsoft.NET.HostModel.RetryUtil.RetryOnWin32Error(Action func) at Microsoft.NET.HostModel.AppHost.HostWriter.CreateAppHost(String appHostSourceFilePath, String appHostDestinationFilePath, String appBinaryFilePath, Boolean windowsGraphicalUserInterface, String assemblyToCopyResorcesFrom) at Microsoft.NET.Build.Tasks.CreateAppHost.ExecuteCore() at Microsoft.NET.Build.Tasks.TaskBase.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() MyApp.Web C:Program Filesdotnetsdk5.0.102SdksMicrosoft.NET.SdkargetsMicrosoft.NET.Sdk.targets 460

enter image description here

Config details here.

I restarted the computer, I run VS in admin mode, nothing helps to get rid of this error.

question from:https://stackoverflow.com/questions/65903138/the-createapphost-task-failed-unexpectedly-15495

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The Eset antivirus detected in the

myappobjdebug.net5.0apphost.exe 

a "danger" and blocked it for an unknown reason. The compilation was impossible.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...