Monday, June 7, 2010

Visual Studio 2008 app_offline.htm

To get rid of the annoying autogenerated app_offline.htm, do 2 steps

1. Make an external tool definition
Tools... External Tools...
Add...
Title - 'Delete
App_Offline'
Command -
'cmd.exe'
Arguments - '/K "del
app_offline.htm'
Initial directory -
'$(ProjectDir)'
Use Output Window =
checked

2. put an entry on the toolbar to call it
Click on the down arrow of the toolbar... Add or
Remove Buttons... Customize
Categories - 'Tools'
Commands - External Tools 3
(Instead of 3, the 1 based index of your External Tool above)
Drag the command to the toolbar
Click on it and rename it

No comments:

Post a Comment