I recently ran into an issue with the following line of code Linq:
.Where(d => convert.ToDateTime(d.dueDate > DateTime.Today)
It all worked fine running local. But once published to Azure the code broke and had to be fixed with DateParse and Invariant Culture. This is due to the target OS being Linux.
Here’s a related post:
My question is. How do I avoid this and guard against it in the future? Beyond trying to remember, is there a way to remind me when I build the project in Visual Studio? Is there any warning that could be set? I’ve already made the mistake 6 months ago but had totally forgotten. Someone else in the team is bound to make it some day too.