In my code behind I’d like to be able to tell that I’m running my web site project in Visual Studio (either Debug or Release).
I was considering testing for “localhost” but that’s not perfect because we could be testing it locally on the server.
Any ideas?
Not exactly what you are asking for, but you check for