[英]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.