Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
349 views
in Technique[技术] by (71.8m points)

teamcity - Where is MsDeployPublish located?

When trying to deploy my site using TeamCity and Web Deploy I get this error:

error MSB4057: The target "MsDeployPublish" does not exist in the project.

Is there something I have to install on a build server? It's a clean Windows Server 2012 with Web Deploy 3.5 installed.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Or you can use this NuGet package with portable version of the targets: https://www.nuget.org/packages/MSBuild.Microsoft.VisualStudio.Web.targets and modify your csproj file to include it like this:

<Import Project="..packagesMSBuild.Microsoft.VisualStudio.Web.targets.12.0.1oolsVSToolsPathWebApplicationsMicrosoft.WebApplication.targets" />

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...