Sto tentando di replicare il comando "Pubblica ..." di Visual Studio 2010 (applicabile ai progetti di applicazioni Web) in cui scegliere nell'interfaccia utente Metodo di pubblicazione: "File System".Come utilizzare MsBuild MsDeployPublish per il targeting del file system locale?
Il mio tentativo di questo è ...
% msbuild%/t: MsDeployPublish/proprietà: MsDeployServiceUrl = "file: /// D: \ MyDeploymentFolder"; MsDeployPublishMethod = "File System" "d : \ MySourceFolder \ Project.csproj "
... e dopo aver provato un metodo di" FileSystem "," File System "," Local "e pochi altri.
L'errore che ottengo implica che MSDeploy sta ancora cercando di spingere a un server 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]
Come posso indirizzare il file system per la distribuzione, come Visual Studio normalmente mi lascia nella GUI?
Sede [Come pubblicare Web App per una posizione specifica (Nant)?] (Http://stackoverflow.com/questions/2928595) –