This is what I normally do when I get this error:
- Delete intermediate, saved, and binaries folders
- Rebuild project in visual studio
- Make sure “For distribution”, “Full rebuild” are checked
- Make sure “Shipping” is selected when packaging.
This is what I normally do when I get this error: