Quick tip for those of you who use a batch file to regenerate your data access layer.

You might have noticed that if you try to run (double click) a batch file from the solution explorer window it just opens the batch file in a text editor.

To make it actually run you:

  1. Right click the batch file
  2. Select “Open With…”
  3. Click “Add…”
  4. In “Program name” put the path of PowerShell (“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe”)
  5. In “Friendly name” type in “PowerShell”
  6. Click OK

Now when you double click your batch file it will automatically execute.

Resources

Comment