.net - How to reference Microsoft.Web.Administration? -
the microsoft.web.administration assembly found in c:\windows\system32\inetsrv on machine. believe installed part of iis. assembly in gac.
how should reference assembly project, given want commit project svn others checkout. microsoft.web.administration not appear in visual studio 'add references' list. can add reference c:\windows\system32\inetsrv\microsoft.web.administration, seems bad idea other developers might have installed on different path or drive.
or copy project folder, have commit binary svn.
the following steps working me:
- copy
microsoft.web.administration.dlllocated inc:\windows\system32\inetsrv - in folder
*.csprojlocated, add folder/lib, pastemicrosoft.web.administration.dll/libfolder - now add relative path .dll in
*.csproj: open*.csproj, search tag<itemgroup>, add following xml-definition:
<reference include="microsoft.web.administration, version=7.9.0.0, culture=neutral, publickeytoken=31bf3856ad364e35, processorarchitecture=msil"> <specificversion>false</specificversion> <hintpath>lib\microsoft.web.administration.dll</hintpath> </reference>
at last, add /lib svn repo. works me on each machine after svn checkout.
if missing microsoft.web.administration.dll in c:\windows\system32\inetsrv, enable iis management console in windows features:

Comments
Post a Comment