79818043

Date: 2025-11-12 17:15:44
Score: 1.5
Natty:
Report link

The problem was that although I was clearing the destination directory on the Linux VM before copying over the files from the publish directory on my local machine, I needed to clear the files in the publish directory locally before running dotnet publish MyApp.csproj --os linux as it doesn't remove files which aren't needed.

Once I cleared it locally, published and copied the files over, the app was working again.

I've learnt something today which is always a good thing!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: tippers