Can't WebDeploy an ASP.NET web service to a remote iis7

I have an ASP.NET REST web service that i would like to deploy using Ms Web Deploy to a distant iis 7 server.
This site is not a web application, i don't have any .csproj for this website.
I would like to deploy it as a new build step after all the other build steps i already have.
I have followed this nice tutorial :
https://www.geekytidbits.com/web-deploy-ms-deploy-from-teamcity/
but it seems to work only for web app when you have a csproj file (build.file.projectName as build parameter)
I don't have any .csproj.

Please help me... I have searched for days...
Why don't you add a simple build step type "WebDeploy" to make it easier ???

 

Note : I don't want to use publish profiles xml files that can be created in Visual Studio.

 

Thanks a lot

Frederic
France

0
1 comment

Hi Frederic,

 

The visual studio runner can run solutions if you have a solution for your web page. You should be able to run the solution and using the publishing just fine. As of now, using projects or solutions are the only implemented options. Of course, you can always run it as a command line script, for which microsoft has documentation on how to accomplish it: https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/command-line-deployment

 

As to your last comment, we haven't added a WebDeploy step for several reasons:

-Almost everybody uses Visual Studio solutions or MSBuild steps instead. Those use the tools already provided by Microsoft which eases the task.

-XML profiles allow users to configure it directly on their end and simply commit the changes, tracking them easily. It also makes it easier to then simply use the publish target for it.

-Pretty much nobody has requested it. I've been unable to find any feature request, finished or otherwise for it in our tracker.

 

Is there any specific reason for you not to want to use any of the provided methods and require an exclusive dedicated step?

0

Please sign in to leave a comment.