How can I create against Microsoft.Web.Administration (IIS 7.x) on a Windows 2003 machine?

I am writing a C # configuration application for (among other things) setting up websites. It is only needed to support IIS 7.x (Windows 2008/2008 R2) and requires the compatibility pack to be no-no, so I decided that I was just using the Microsoft.Web.Administration namespace.

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 assembly machines are Windows 2003 and therefore cannot install IIS 7. x.

One option is to designate the 2008 build car, but currently we only have one so that is not perfect. We have already excluded appcmd.exe.

Another option is to create a package consisting of the DLL necessary for assembly against Microsoft.Web.Administration.dll. Has anyone tried this? Is there such an existing package hidden somewhere on the MS download site?

Thanks in advance.

+3
source share
1 answer

Works. Dlls are good enough to compile them. Just grab them (from the web server) and make them available to the build system.

+2
source

Source: https://habr.com/ru/post/1750466/


All Articles