当我尝试调试我的通用应用程序项目时,我遇到了一个错误的错误,这是我得到的错误:
Unexpected failure of the task "GenerateResource"
System.NullReferenceException: Object reference not set to an instance of an object.
à Microsoft.Build.Tasks.ResGenDependencies.TryGetPortableLibraryInfo(String libraryPath)
à Microsoft.Build.Tasks.GenerateResource.GetResourcesToProcess(List`1& inputsToProcess, List`1& outputsToProcess, List`1& cachedOutputFiles)
à Microsoft.Build.Tasks.GenerateResource.Execute()
à Microsoft.Build.CommandLine.OutOfProcTaskAppDomainWrapperBase.InstantiateAndExecuteTask(IBuildEngine oopTaskHostNode, LoadedType taskType, String taskName, String taskLocation, String taskFile, Int32 taskLine, Int32 taskColumn, AppDomainSetup appDomainSetup, IDictionary`2 taskParams) MyProject
答案 0 :(得分:1)
尝试这样做:
如果这不起作用,请重新启动计算机,它可能会解决