Próbuję skopiować polecenie Visual Publish 2010 "Publikuj ..." (dotyczy projektów aplikacji WWW), gdzie chciałbym w UI wybrać Opublikuj metodę: "System plików".Jak używać MsBuild MsDeployPublish do kierowania na lokalny system plików?
Moja próba to jest ...
% msbuild%/t: MsDeployPublish/nieruchomość: MsDeployServiceUrl = "file: /// D: \ MyDeploymentFolder"; MsDeployPublishMethod = "File System" „d : \ MySourceFolder \ Project.csproj "
... i po wypróbowaniu metody" FileSystem "," System plików "," Local "i kilka innych.
Błąd pojawia zakłada, że MsDeploy wciąż próbuje naciskać na serwerze IIS:
"D:\MySourceFolder\Project.csproj" (MsDeployPub
lish target) (1) ->
(MSDeployPublish target) ->
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web
.Publishing.targets(3847,5): error : Web deployment task failed.(The metabase k
ey '/lm/w3svc' could not be found.) [D:\MySourceFolder\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.P
ublishing.targets(3847,5): error : \r [D:\MySourceFolder\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.P
ublishing.targets(3847,5): error : The metabase key '/lm/w3svc' could not be fo
und.\r [D:\MySourceFolder\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.P
ublishing.targets(3847,5): error : Unable to access the IIS configuration syste
m. Please make sure you have IIS 7 (or later) installed.\r [D:\MySourceFolder\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.P
ublishing.targets(3847,5): error : Retrieving the COM class factory for compone
nt with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} failed due to the followin
g error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REG
DB_E_CLASSNOTREG)). [D:\MySourceFolder\Project.csproj]
Jak mogę kierować system plików do wdrożenia, jak Visual Studio pozwala mi normalnie w GUI?
patrz [Jak opublikować aplikację internetową do określonej lokalizacji (Nant)?] (Http://stackoverflow.com/questions/2928595) –