GenerateApplicationManifest错误

szu*_*bia 9 .net visual-studio-2010 build-error

我和我的团队经常会发现这个错误,但我们不确定为什么会这样做.为了解决这个问题,我们要么构建解决方案几次就必须重新启动Visual Studio(10).这是我尝试构建时出现的错误:

Error 5 The "GenerateApplicationManifest" task failed unexpectedly.
System.Runtime.InteropServices.COMException (0x8731F230): Exception from HRESULT: 0x8731F230
 at System.Runtime.InteropServices.UCOMITypeInfo.ReleaseTypeAttr(IntPtr pTypeAttr)
 at Microsoft.Build.Tasks.Deployment.ManifestUtilities.ComImporter..ctor(String path, OutputMessageCollection outputMessages, String outputDisplayName)
 at Microsoft.Build.Tasks.Deployment.ManifestUtilities.FileReference.ImportComComponent(String path, OutputMessageCollection outputMessages, String outputDisplayName)
 at Microsoft.Build.Tasks.GenerateApplicationManifest.AddIsolatedComReferences(ApplicationManifest manifest)
 at Microsoft.Build.Tasks.GenerateApplicationManifest.BuildApplicationManifest(ApplicationManifest manifest)
 at Microsoft.Build.Tasks.GenerateApplicationManifest.OnManifestLoaded(Manifest manifest)
 at Microsoft.Build.Tasks.GenerateManifestBase.BuildManifest()
 at Microsoft.Build.Tasks.GenerateManifestBase.Execute()
 at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
 at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)

谢谢你的帮助!

Mic*_*ren 2

我遇到了类似的问题,发现这是因为我的程序集之一的路径太长。我真的不明白为什么在某些情况下它可能对你有用,而在其他情况下则不然,所以它可能是别的东西,但检查一下总没有坏处。

我相信最大长度是 260 个字符。