visual studio - Run expression at compile time VS 2013 -


Imagine that I am writing my code and I would like to know the current date time ... usually I:
Create a new console project,
  • Put a breakpoint after the main
  • Popup to Quickwatch
  • and evaluate DateTime.Now ...

    My question is this: Is there a way to do this without debugging any project (bring instant Outlook) ???

    You can run C # / VB code with commands.

  • Comments

    Popular posts from this blog

    php - PDO bindParam() fatal error -

    php - How can I cram 6+31 numeric characters into 22 alphanumeric characters? -

    logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -