Reputation: 153
My project will parse XML file and do some job.
If i'm inside VS 2005 and I run my project, it works fine.
If i try to execute my project (console application / .exe) i got this error:
Path cannot be the empty string or all whitespace
Upvotes: 0
Views: 14340
Reputation: 505
I was also facing same issue while using visual studio 2017 Error: 'path' cannot be an empty string ("")
Below solution worked for me.
Solution Steps :
Right click on solution.
Click Disable Lightweight Solution Load
Then restart your Visual studio.
Then try to Build/Rebuild solution.
I hope, now you are able to build.
Reason to face this issue in VS2017 :
As I researched, Microsoft provided lots of new features in visual studio 2017. One is :
Visual Studio starts faster, is more responsive, and uses less memory than before.
To achieve this feature we need to Enable Lightweight Solution load.
For more information https://learn.microsoft.com/en-us/visualstudio/ide/whats-new-in-visual-studio
Upvotes: 0