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:
- 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).
- Ensure you’ve created your project in a separate folder, not your home directory.
- Ensure you used “dotnet new console” to create the project. Some other project types expect you to configure other settings.
- 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