本文介绍了问题解决方案:"ResolveAssemblyReference"任务意外失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已经完美构建了几个月的项目.我已经有两个星期没有使用Visual Studio了,今天我在尝试构建项目时发现以下错误.自上次正确构建以来,我丝毫没有接触过该应用程序中的任何内容.有人知道可能会发生什么吗?这真令人沮丧....

I have a project that has been building perfectly for months. I have been a couple of weeks without working with Visual Studio, and today I'm finding the below error when trying to build the project. I havent touched anything at all in the application since the last time it built correctly. Anyone knows what maybe going on? This is really frustrating ....

谢谢

耶苏斯

错误1.
System.NullReferenceException:对象引用未设置为对象的实例.
在System.Globalization.CultureTableRecord.AdjustSyntheticCalendars(CultureData& data,CompositeCultureData& CompositeData)
在System.Globalization.在System.Globalization.CultureTableRecord.GetCultureDataSize(Int32 cultureID,CultureData&数据,CompositeCultureData& CompositeData)
br>在System.Globalization.CultureTableRecord.GetCultureTableRecord(字符串名称,布尔useUserOverride)
在System.Globalization.CultureTableRecord.GetCultureTableRecord(Int32 cultureId,布尔useUserOverride)在System.Globalization.CultureInfo..ctor(Int32 Culture ,布尔值useUserOverride)
在System.Globalization.CultureInfo..ctor(Int32文化)
在System.Globalization.CultureTab在Microsoft.Build.Tasks.CultureStringUtilities.PopulateCultureInfoArray()的le.GetCultures(CultureTypes类型)
在Microsoft.Build.Tasks.ReferenceTable.FindSatellites(参考文献)在Microsoft.Build.Tasks.ReferenceTable Microsoft.Build.Tasks.ReferenceTable.ComputeClosure()的Microsoft.FindAssociatedFiles()
.Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists,DirectoryExists directoryExists,GetDirectories getDirectories,GetAssemblyName getAssemblyNameGetGetssemblyName, ,在Microsoft.Build.Tasks.ResolveAssemblyReference.Execute()处在Microsoft.Build.Tasks.ResolveAssemblyReference.Execute()在Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask,哈希表projectItemsAvailableToTask,Prov; taskClassWasFound)PILLS

Error 1 The "ResolveAssemblyReference" task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Globalization.CultureTableRecord.AdjustSyntheticCalendars(CultureData& data, CompositeCultureData& compositeData)
   at System.Globalization.CultureTableRecord.GetCultureDataSize(Int32 cultureID, CultureData& data, CompositeCultureData& compositeData)
   at System.Globalization.CultureTableRecord.GetSyntheticCulture(Int32 cultureID)
   at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)
   at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)
   at System.Globalization.CultureTableRecord.GetCultureTableRecord(Int32 cultureId, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(Int32 culture, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(Int32 culture)
   at System.Globalization.CultureTable.GetCultures(CultureTypes types)
   at Microsoft.Build.Tasks.CultureStringUtilities.PopulateCultureInfoArray()
   at Microsoft.Build.Tasks.ReferenceTable.FindSatellites(Reference reference)
   at Microsoft.Build.Tasks.ReferenceTable.FindAssociatedFiles()
   at Microsoft.Build.Tasks.ReferenceTable.ComputeClosure()
   at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, DirectoryExists directoryExists, GetDirectories getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata getAssemblyMetadata, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, GetLastWriteTime getLastWriteTime)
   at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) PILLS

推荐答案

关于Eugene


这篇关于问题解决方案:"ResolveAssemblyReference"任务意外失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 00:04