Cannot build : System.ComponentModel.Win32Exception
I downloaded 4.20 and wanted to make transition from a 4.19 project. The build failed, and here was the error log in VS 2017 :
(it's french, sorry, but it says : Unhandled exception: System.ComponentModel.Win32Exception: Unable to find the specified file)
Have you got any clue for me?
Thank you for your help :)
asked Aug 27 '18 at 04:12 PM in C++ Programming
Ok, I found a solution, but it's not a pretty one ^^
1 - Create a new C++ blank project, name it as your project (if it's not the same version it should be fine).
2 - Copy all the C++ files from your old project to your new one, in your Source folder, and don't replace target.cs files, nor [project_name].h, .cpp, .build.cs. Instead, let the generated ones. If you have any code in there, open both files and copy the code by hand.
3 - Regenerate the solution on VS 2017
4 - Copy all the content from your old project to your new one, in the Content folder.
5 - Launch UE4 and build!
It should be fine, it worked for me, after few trials and errors. You should be careful about the orders of the steps I describe because if you open UE4 with the content in the new project and you still haven't built the C++ code, it might end up broken. In this case, delete all content and retry from step 3.
Hope this works for you H8weaver :)
Follow this question
Once you sign in you will be able to subscribe for any updates here