Emptied .vs folder, unable to start ue4

I emptied the entire “.vs” folder and now I get this when trying to compile in Visual Studio 2017:

Unable to start program ‘[snip]\Engine\Intermediate\Build\Unused\UE4.exe’

None of these answers solved it for me:

I know it’s possible to delete the .vs folder in the project dir (I emptied it because it was 6GB in size). What I tried after emptying the .vs folder:

  • Delete the Binary folder
  • Delete the Intermediate folder
  • Delete the .suo file
  • Generate Visual Studio project files
  • Set my project as the startup project

I restored the .vs folder and it works again. But I rather have the option to clean it because this ‘cache’ folder is about 20x bigger than my entire project. I rather not have to backup/GIT this folder as well.

I moved the project to a directory without spaces in the path. Then I deleted EVERYTHING except the Config, Source and Content folders (also deleted the GIT files just to be safe). Then I generated the Visual Studio project files and it compiled.

1 Like