Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1006 Bytes

visualStudio_2019.md

File metadata and controls

20 lines (16 loc) · 1006 Bytes

Visual Studio 2019

Ignore npm install in Visual Studio 2019.

  • goto Tools > options search for Package Restore.Set Restore On Project Open to False and Restore On Save to False.

Add Build Date to project

View BuildDate

  • Add build date to project,which can be helpful in future to know when was the project build.
  1. Add File called BuildDate.txt to Properties Folder Add BuildDate.txt to Properties Folder

  2. Go to project settings by Right clicking project -> Build Events -> "Pre-build event command line" add echo %date% %time% > "$(ProjectDir)\Properties\BuildDate.txt" et Pre-build command

  3. File contents can be accessed thru Properties object. example:

var buildDate = Properties.Resources.BuildDate;
Context.Response.Write($"\nBuild Date: {buildDate}\n");