I was running my project through Visual Studio. One day it stopped working like this. Then I saw there was a new Visual Studio update, and after updating it, it was fixed...