The "CreateAppHost" task failed unexpectedly. (Version 16.4.5)
See original GitHub issueHi,
Microsoft Visual Studio Community 2019 Version 16.4.5 Randomly getting the bellow error. I have added my root folder to the antivirus exclusion list.
Error MSB4018 The "CreateAppHost" task failed unexpectedly.
Microsoft.NET.HostModel.HResultException: 8007006E
at Microsoft.NET.HostModel.ResourceUpdater.Update()
at Microsoft.NET.HostModel.AppHost.HostWriter.<>c__DisplayClass2_0.<CreateAppHost>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.<ExecuteInstantiatedTask>d__26.MoveNext() EyezServices.Client C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets 393
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:41 (5 by maintainers)
Top Results From Across the Web
The CreateAppHost task failed unexpectedly. MSB4018
This was caused by using VSCode as admin. Apparently after I build solution with VSCode as admin, some gets messed up resulting with...
Read more >The CreateAppHostTask failed unexpectedly
For a while now, I have been receiving an error “The “CreateAppHost” task failed unexpectedly. System.IO.IOException: The process cannot ...
Read more >MSB4018: The task failed unexpectedly - Microsoft Q&A
Error MSB4018 The "CreateAppHost" task failed unexpectedly. System.AggregateException: One or more errors occurred. ---> System.
Read more >Project cant be builded
Hello, i cant build my c# winforms project. it shows this error: Error MSB4018 the "CreateAppHost" task failed unexpectedly. Microsoft.NET.
Read more >MSBuild forum - RSSing.com
Error MSB4018 The "CreateAppHost" task failed unexpectedly. Microsoft.NET.HostModel.HResultException: 80070013 at Microsoft.NET.HostModel.AppHost.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a nightmare… nothing helps
Closing VS Code (running on WSL) solved the issue for me. Also worth mentioning that both VS and VS Code were using the same working dir