StudioCrusader
New member
- Joined
- May 23, 2021
- Messages
- 2
- Programming Experience
- 1-3
Hello, i cant build my c# winforms project. it shows this error:
Error MSB4018 the "CreateAppHost" task failed unexpectedly.
Microsoft.NET.HostModel.HResultException: 80070002
v Microsoft.NET.HostModel.ResourceUpdater.AddResourcesFromPEImage(String peFile)
v Microsoft.NET.HostModel.AppHost.HostWriter.<>c__DisplayClass2_0.<CreateAppHost>g__UpdateResources|1()
v Microsoft.NET.HostModel.RetryUtil.RetryOnWin32Error(Action func)
v Microsoft.NET.HostModel.AppHost.HostWriter.CreateAppHost(String appHostSourceFilePath, String appHostDestinationFilePath, String appBinaryFilePath, Boolean windowsGraphicalUserInterface, String assemblyToCopyResorcesFrom)
v Microsoft.NET.Build.Tasks.CreateAppHost.ExecuteCore()
v Microsoft.NET.Build.Tasks.TaskBase.Execute()
v Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
v Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() KeyLogger C:\Program Files\dotnet\sdk\5.0.203\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets 508
Error MSB4018 the "CreateAppHost" task failed unexpectedly.
Microsoft.NET.HostModel.HResultException: 80070002
v Microsoft.NET.HostModel.ResourceUpdater.AddResourcesFromPEImage(String peFile)
v Microsoft.NET.HostModel.AppHost.HostWriter.<>c__DisplayClass2_0.<CreateAppHost>g__UpdateResources|1()
v Microsoft.NET.HostModel.RetryUtil.RetryOnWin32Error(Action func)
v Microsoft.NET.HostModel.AppHost.HostWriter.CreateAppHost(String appHostSourceFilePath, String appHostDestinationFilePath, String appBinaryFilePath, Boolean windowsGraphicalUserInterface, String assemblyToCopyResorcesFrom)
v Microsoft.NET.Build.Tasks.CreateAppHost.ExecuteCore()
v Microsoft.NET.Build.Tasks.TaskBase.Execute()
v Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
v Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() KeyLogger C:\Program Files\dotnet\sdk\5.0.203\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets 508