开发者

detecting the presence and version of IIS using MSBuild

开发者 https://www.devze.com 2022-12-26 00:36 出处:网络
What is the best way to determine whether IIS is installed 开发者_开发知识库and the version if it is using MSBuild?

What is the best way to determine whether IIS is installed 开发者_开发知识库and the version if it is using MSBuild?

So far I can think of using either WMI or Registry but is there an existing task in the MS Community Task, MS Web Deployment or MSBuild Extension tasks which already does this?


You can use: MSBuild.Community.Tasks.IIS library, there will be WebBase.IISVersion, it can determine which version of IIS is installed. Here's the link: http://msbuildtasks.tigris.org/

You can also use Microsoft.Sdc.Tasks library and tere is a function called Microsoft.Sdc.Tasks.Configuration.InstalledProducts Here's the link: http://sdctasks.codeplex.com/

Hope this helps a bit.

0

精彩评论

暂无评论...
验证码 换一张
取 消