DEV Community

loading...

Discussion on: Those silly mistakes we all make

Collapse
denmch profile image
Den McHenry

I’d never worked with Visual Studio before and for a long time I’d forget to commit changes to the project file, so that everything worked locally but when my colleague pushed changes, there was no reference to new files and the site would compile without them.

Collapse
philnash profile image
Phil Nash Author

A classic "works on my machine" 😄

Forget committing changes. Backup the rest of your work and send your laptop up to prod!

Collapse
denmch profile image
Den McHenry

The bit that hung me up was that the files themselves WERE committed and present, and the other developer could see them, but since they weren't referenced in the .csproj file, they didn't make it production. I don't know how many times I did that in the early going.

Thread Thread
philnash profile image
Phil Nash Author

Oh that's so weird. I've not worked with C# or Visual Studio and this would definitely catch me out.