tags:

views:

21

answers:

1

Hi,

I am writing a C# config app for (amongst other things) setting up websites. 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.

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.

One option is to mandate a 2008 build machine but we currently only have one so that's not ideal. We've already ruled out appcmd.exe.

The other option is to make a package consisting of the dlls necessary to build against Microsoft.Web.Administration.dll. Has anyone tried that? Is there such a package already in existence, hidden somewhere on the MS download site?

Thanks in advance.

+1  A: 

Works. The dll's are good enough to compile against them. Just take them (from a web server) and make them available for the build system.

TomTom
Thanks Tom. Do you have a list of the DLLs I'd need to copy over - it'd save me a Reflector crawl :)
JohnL
Not really. I develope on Win 7, o for me it is easier to just install IIS ;)
TomTom
LOL no problem. I develop on 2k8, it's only our build machines that have this issue. I spoke to the boss and he says we'll put it on the 2k8 build machine. It's only a small project so it can be moved around as resources dictate.Thanks for the help
JohnL