Anton Kalcik
Anton Kalcik

Reputation: 2206

Edit applicationhost.config with appcmd.exe at different location

Can I use appcmde.exe to edit applicationhost.config at different location? For example: Visual Studio 2015 creates applicationhost.config at .vs\config directory. I could manually edit this file but i would like to prefer to use appcmd.exe.

Upvotes: 1

Views: 1622

Answers (2)

alans
alans

Reputation: 1040

You can use the option apphostconfig to specify a different applicationhost.config file.

For example:

appcmd list site "mysite" /config /apphostconfig:"%userprofile%\projects\myproject\.vs\config\applicationhost.config"

Upvotes: 1

Lex Li
Lex Li

Reputation: 63264

Jexus Manager gives an IIS Manager alike experience, but of course you can use IIS Express appcmd,

http://www.iis.net/learn/extensions/introduction-to-iis-express/iis-80-express-readme

Starting from IIS 8 Express it supports the /AppHostConfig switch as the readme fie indicates.

Upvotes: 1

Related Questions