发布错误 [英] Publishing Error

查看:50
本文介绍了发布错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试发布我的VB 2010 Windows窗体应用程序时。它给了我以下错误:

When I try to publish my VB 2010 windows forms application. It gives me the following error:

"错误  2 "ResolveManifestFiles""任务意外失败。
$
System.InvalidOperationException:读取redist列表文件"C:\Program Files \Reference Assemblies\Microsoft \ Framework \.NETFramework \v4"时出错.5\RedistList\FrameworkList.xml" ;.缺少根元素。

  在Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName,Object [] args)

  在Microsoft.Build.Utilities.ToolLocationHelper.ChainReferenceAssemblyPath(String targetFrameworkDirectory)

  在Microsoft.Build.Utilities.ToolLocationHelper.GetPathAndChainReferenceAssemblyLocations(String targetFrameworkRootPath,FrameworkName frameworkName,Boolean chain)

  在Microsoft.Build.Utilities.ToolLocationHelper.GetPathToReferenceAssemblies(String targetFrameworkRootPath,FrameworkName frameworkName)

  在Microsoft.Build.Utilities.ToolLocationHelper.GetPathToReferenceAssemblies(FrameworkName frameworkName)

  在Microsoft.Build.Tasks.Deployment.ManifestUtilities.AssemblyIdentity.get_IsFrameworkAssembly()

  在Microsoft.Build.Tasks.ResolveManifestFiles.IsFiltered(ITaskItem项目)

  在Microsoft.Build.Tasks.ResolveManifestFiles.GetOutputAssemblies(PublishInfo [] publishInfos,List`1& assemblyList)

  在Microsoft.Build.Tasks.ResolveManifestFiles.GetOutputAssembliesAndSatellites(PublishInfo [] assemblyPublishInfos,PublishInfo [] satellitePublishInfos)

  在Microsoft.Build.Tasks.ResolveManifestFiles.Execute()

  在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

  在Microsoft.Build.BackEnd.TaskBuilder。< ExecuteInstantiatedTask> d__20.MoveNext()  Cash Register"

"Error 2 The "ResolveManifestFiles" task failed unexpectedly.
System.InvalidOperationException: There was an error reading the redist list file "C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\RedistList\FrameworkList.xml". Root element is missing.
   at Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[] args)
   at Microsoft.Build.Utilities.ToolLocationHelper.ChainReferenceAssemblyPath(String targetFrameworkDirectory)
   at Microsoft.Build.Utilities.ToolLocationHelper.GetPathAndChainReferenceAssemblyLocations(String targetFrameworkRootPath, FrameworkName frameworkName, Boolean chain)
   at Microsoft.Build.Utilities.ToolLocationHelper.GetPathToReferenceAssemblies(String targetFrameworkRootPath, FrameworkName frameworkName)
   at Microsoft.Build.Utilities.ToolLocationHelper.GetPathToReferenceAssemblies(FrameworkName frameworkName)
   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.AssemblyIdentity.get_IsFrameworkAssembly()
   at Microsoft.Build.Tasks.ResolveManifestFiles.IsFiltered(ITaskItem item)
   at Microsoft.Build.Tasks.ResolveManifestFiles.GetOutputAssemblies(PublishInfo[] publishInfos, List`1& assemblyList)
   at Microsoft.Build.Tasks.ResolveManifestFiles.GetOutputAssembliesAndSatellites(PublishInfo[] assemblyPublishInfos, PublishInfo[] satellitePublishInfos)
   at Microsoft.Build.Tasks.ResolveManifestFiles.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() Cash Register"

我可以构建,并且调试没有问题或错误,但我不能发布它。请帮帮忙?

I can build, and debug with no problem or errors but I cant publish it. Please help?

推荐答案

Hello Susanne0,

Hello Susanne0,

您能否提供FrameworkList的内容。 xml文件?

Could you provide the contents from the FrameworkList.xml file ?


这篇关于发布错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆