Sunday, May 31, 2009

Set Publish Website Command in Visual Web Developer Express 2008



Visual web developer Express 2008 does not have the facility to publish a website. The following steps will help you to embed this command in Visual Web Developer 2008:

  1. Launch Visual Web Developer Express 2008.

  2. Select Tools, then External Tools which will display the External Tools dialog. In the Title box, enter Publish &Website(non-overwrite).

  3. Click the browse button next to the Command box and browse to aspnet_compiler.exe which will be located in c:\Windows\Microsoft.NET\Framework\v2.0.50727.

  4. Click Open to add the command line for aspnet_compiler.exe.


Now that you've got the correct command line for the aspnet_compiler.exe, it's time to add the arguments that will correctly pre-compile your application. This is where you'll see the true power of the External Tools dialog.

  1. Type -p " in the Arguments box. (That's an opening double-quote after the p.)

  2. Click the right-facing arrow next to the Arguments box and select Project Directory.

  3. Add a trailing double-quote to the Arguments box.

  4. Press the spacebar to add a space at the end of the existing arguments.

  5. Type -v / " after the space you just entered.

  6. Click the right-facing arrow next to the Arguments box and select Project Directory.

  7. Type \..\CompiledApp" after the existing arguments.

  8. At this point, the Arguments box should contain the following:
    -p "$(ProjectDir)" -v / "$(ProjectDir)\..\CompiledApp"

  9. Type -u.
    -p "$(ProjectDir)" -v / "$(ProjectDir)\..\CompiledApp" -u


Hope this will help you guyz to work with VS developer express 2008.

Regards,
Amit Kumar Dhiman
Development Matrimonial Project:
URL: http://www.citymatrimonials.com

3 comments:

  1. I have configured this on my vs 2008, but this does not overwrite publish website folder.

    Any help?

    ReplyDelete
  2. Gr8 work really, it's working...

    ReplyDelete