In case you are facing the following error MSB4017: Could not run the "GenerateResource" task because MSBuild could not create or connect, while building your project/solution in Visual Studio, this could be because the build system is running out of the build process.
To resolve this error, there could be two different approaches. In this quick note, sharing both the solutions for your easy reference.