Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build Failure. Error: 'path' cannot be an empty string ("") or start with the null character

I have a solution that builds fine in VS2015. I just installed VS2017 RTM and after conversion, attempts to build the solution fail immediately with the error:

Build Failure. Error: 'path' cannot be an empty string ("") or start with the null character.

How can I get around this?

like image 491
Drew Noakes Avatar asked Mar 07 '17 17:03

Drew Noakes


1 Answers

The problem seems to be with the new lightweight solution loading feature of VS2017.

To fix it, first clean up:

  • Close Visual Studio 2017
  • Delete or rename the .vs folder
  • Reopen the solution

Afterwards, don't re-enable lightweight solution loading for that solution.

You can completely disable lightweight solution loading for all solutions in the options, but if the problem only applies to some solutions then that might be a bit heavy handed.

like image 131
Drew Noakes Avatar answered Sep 22 '22 11:09

Drew Noakes