Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not read state file "obj\Debug\Helpers.csprojResolveAssemblyReference.cache" error when publishing project

I was trying to publish an ASP.NET website and got the following warning:
Could not read state file "obj\Debug\Helpers.csprojResolveAssemblyReference.cache"

This prevents me from actually publishing the website. Any idea on how to solve this?

like image 589
Erik Schierboom Avatar asked Aug 23 '12 12:08

Erik Schierboom


1 Answers

The answer is actually quite simple: first clean the whole solution and then publish again. Now everything should work.

The problem was due to the fact that the state file was in an older format (VS2012 RC format) and I was trying to publish from VS2012 RTM.

like image 77
Erik Schierboom Avatar answered Oct 04 '22 02:10

Erik Schierboom