Resource Generation Failure

From what I saw about this error, they are all slightly different

until today, my code worked fine. (Visual studio 2015)

the error i get is shown below

Severity code Description Project file line error. The GenerateResource task completed unexpectedly. System.NullReferenceException: An object reference is not set to an object instance. in Microsoft.Build.Tasks.ResGenDependencies.GetResXFileInfo (String resxFile) in Microsoft.Build.Tasks.GenerateResource.ShouldRebuildResgenOutputFile (String sourceFilePath, String outputFilePath) at Microsoft.Build.Tasks.GenerateResource.GetResourcesToProcess (List 1& inputsToProcess, List1 & outputToProcess, List`1 & cachedOutputFiles) in Microsoft.Build.Tasks.GenerateResource.Execute () in Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () in Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext

I have no idea what it is, and no solution that I have seen so far has helped me. Any help is appreciated.

+4
source share
1 answer

There seems to be a known bug in RTM Visual Studio 2015 (or better said in the MSBuild tool that uses Visual Studio).

A workaround looks like this:

To get around # 314, completely remove all the outputs of the assembly and build again - the problem is that the internal cache is not correctly interpreted on the old bits, causing this failure.

So, delete the folder binand objfrom your project and try again.

, -, Visual Studio 2015 1. , .

+7

Source: https://habr.com/ru/post/1625803/


All Articles