Comment utiliser MsBuild MsDeployPublish à la cible du système de fichier local?

Je suis en train de reproduire le Visual Studio 2010 "Publier... de la commande" (applicable pour les projets d'Application Web) où je serais dans l'INTERFACE utilisateur de choisir de Publier Méthode: "Système de Fichiers".

Ma tentative c'est...

%msbuild% /t:MsDeployPublish /propriété:MsDeployServiceUrl="file:///d:\MyDeploymentFolder";MsDeployPublishMethod="Système de Fichiers" "d:\MySourceFolder\Project.csproj"

... et pour l'avoir essayé une méthode de "système de fichiers", "Système de Fichiers", "Local", et quelques autres.

L'erreur que je reçois implique que MsDeploy est encore en train de pousser à un serveur 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]

Comment puis-je cibler le système de fichiers pour le déploiement de Visual Studio normalement me permet de l'interface?

InformationsquelleAutor DuckMaestro | 2012-02-07