I create webdirectory in IIS, using MSBuild task:
<WebDirectoryCreate
   VirtualDirectoryName="$(VirtualDirectoryName)"
   VirtualDirectoryPhysicalPath="$(VirtualDirectoryPath)"
   AccessExecute="true"/>
Now I look for possibility to specify enabled protocols (htt开发者_开发技巧p, https, net.tcp) for this webdirectory using MSBuild. Any suggestion?
Had no luck to find any custom MSBuild task to handle above described action. Anyway I can still use appcmd.exe in order to do that:
<Exec Command='%systemroot%\system32\inetsrv\appcmd set app "Default Web Site/WebAppName" /enabledProtocols:http,net.pipe,net.tcp'></Exec>
In fact I can't even find case now where person running my msbuild task has no appcmd.exe installed :) hm... ok... whatever...
A minor correction to the answer, your site name must be followed by a slash:
%systemroot%\system32\inetsrv\appcmd set app "MySite/" /enabledProtocols:http,net.pipe,net.tcp
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论