I have a situation where I need to debug a process that runs at a future date. This is existing legacy code that uses DateTime.Now (C#) & GETUTCDATE() (T-SQL) within its code in several places. We're having to change the date & time on Windows 10 to test how the code behaves with future dates.
We've tried preventing internet access but the application uses 3rd Party API's which require Internet access. We normally get about 1 hour of debugging time before Visual Studio 2019 checks for a stale license.
The big problem is that we're running into license issues with Visual Studio 2019 in the middle of debugging. We get booted out and have to start over. The process is lengthy and normally takes about an hour to get to a debugging position.
Does anyone know of a switch or command line parameter to temporarily allow us to modify the system date without shutting down Visual Studio 2019 due to stale license? Or any techniques that anyone has tried to debug.
Thank you in advance for your help.
