简体   繁体   English

如何在Windows 2003构建计算机上针对Microsoft.Web.Administration(IIS 7.x)进行构建?

[英]How can I build against Microsoft.Web.Administration (IIS 7.x) on a Windows 2003 build machine?

I am writing a C# config app for (amongst other things) setting up websites. 我正在为(除其他事项外)设置网站编写一个C#配置应用程序。 It's only required to support IIS 7.x (Windows 2008 / 2008 R2), and requiring the compatibility pack is a no-no, so I figured I'd just use the Microsoft.Web.Administration namespace. 它只需要支持IIS 7.x(Windows 2008/2008 R2),并且要求兼容包是禁止的,所以我想我只使用Microsoft.Web.Administration命名空间。

However, the only place I can find the assembly that contains this namespace (Microsoft.Web.Administration.dll) is from the IIS 7.x installation folder, and our main build machines are Windows 2003 and so cannot install IIS 7.x. 但是,我唯一可以找到包含此命名空间的程序集(Microsoft.Web.Administration.dll)来自IIS 7.x安装文件夹,而我们的主要构建计算机是Windows 2003,因此无法安装IIS 7.x.

One option is to mandate a 2008 build machine but we currently only have one so that's not ideal. 一种选择是强制要求建造一台2008年的机器,但我们目前只有一台,因此这并不理想。 We've already ruled out appcmd.exe. 我们已经排除了appcmd.exe。

The other option is to make a package consisting of the dlls necessary to build against Microsoft.Web.Administration.dll. 另一个选项是创建一个包,该包由构建Microsoft.Web.Administration.dll所需的dll组成。 Has anyone tried that? 有人试过吗? Is there such a package already in existence, hidden somewhere on the MS download site? 是否已经存在这样的包,隐藏在MS下载站点的某个地方?

Thanks in advance. 提前致谢。

Works. 作品。 The dll's are good enough to compile against them. 这些dll足以编译它们。 Just take them (from a web server) and make them available for the build system. 只需将它们(来自Web服务器)并使它们可用于构建系统。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IIS:如何使用Microsoft.Web.Administration在网站中创建虚拟目录 - IIS: How to create virtualdirectory in website with Microsoft.Web.Administration IIS-如何使用Microsoft.Web.Administration编辑应用程序的本地配置 - IIS - How to edit local config for application with Microsoft.Web.Administration 如何使用Microsoft.Web.Administration命名空间在IIS7中干净地操作Handler Mappings? - How do I manipulate Handler Mappings cleanly in IIS7 using the Microsoft.Web.Administration namespace? 如何通过Microsoft.Web.Administration查找应用程序池的SID? - How can I find the SID for an app pool via Microsoft.Web.Administration? IIS 8的Microsoft.Web.Administration不会显示所有站点 - Microsoft.Web.Administration for IIS 8 does not display all sites 在Visual Studio 2013中生成错误“无法找到7.0.0.0版Microsoft.Web.Administration” - Build error “Unable to find version 7.0.0.0 Microsoft.Web.Administration ”in visual studio 2013 Microsoft.Web.Administration Ssl 证书未在 iis 管理器中选择 - Microsoft.Web.Administration Ssl cert not selected in iis manager 使用Microsoft.Web.Administration以编程方式在IIS7中创建远程站点:索引无效。 (来自HRESULT的异常:0x80070585) - Programmatically creating a remote site in IIS7 using Microsoft.Web.Administration: Invalid index. (Exception from HRESULT: 0x80070585) 如何使用Microsoft.Web.Administration添加子应用程序? - How to add child application using Microsoft.Web.Administration? .Net Core和Microsoft.Web.Administration - .Net Core and Microsoft.Web.Administration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM