Error MSB3552 When Building HelloWorld

I had someone reach out to me via email with a problem they were having, and I thought Iā€™d post something on it here in case others were having a similar issue.

PROBLEM: Running ā€˜dotnet buildā€™ fails with ā€œError MSB3552. Resource file '**/*.resx cannot be found.ā€

POTENTIAL FIXES:

  1. Ensure your project directory path is less than 260 characters long. Unfortunately, even though itā€™s 2019 Microsoft STILL has occasional problems with long file paths. This means moving to a shallower directory structure. You may be able to do this by simply dragging and dropping the project folder to a new place using Finder (Mac) or File Explorer (Windows).
  2. Ensure youā€™ve created your project in a separate folder, not your home directory.
  3. Ensure you used ā€œdotnet new consoleā€ to create the project. Some other project types expect you to configure other settings.
  4. Delete all contents of your HelloWorld folder, including hidden files, and re-create the entire project with ā€˜dotnet new consoleā€™

As always, thank you for your interest in the course! I hope youā€™re finding it fun! (And helpful.)

Jim