Docs: MsBuild or Command Line Integration, CI and Publish

Created on 12 Jun 2018  Â·  6Comments  Â·  Source: dotnet/docs

Can I publish WCF service library project with auto generated *.svc and web.config files that integrated CI pipeline. (VSTS, TFS, Task or Command Line).


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Area - .NET Framework Guide Technology - WCF product-question

Most helpful comment

We don't currently support this functionality for the WCF Service Library projects. Your options for this would be to either use a WCF Service Application project (which includes these in the project and has more advanced publishing support), or create a custom MSBuild task to do this generation for you.

All 6 comments

@zhenlan is this something you or someone from your team can help answer?

@gencebay is your question about whether you can publish a WCF application as part of CI instead of inside Visual Studio? Are you thinking about publishing to IIS? If yes for both questions, publishing of WCF applications is very similar to publishing ASP.NET applications, so you should be able to use tools for publishing ASP.NET applications, for example, web deploy.

cc @Lxiamail

Yes. Publish a WCF application is very similar to publishing ASP.NET applications if you create all .svc and web.config file manually and include them to the project as content (Build Action). I'm looking for a way auto generate these files (.svc and web.config) during CI build from WCF Service Library codebase like Visual Studio -> Publish can do.

Steps:

  1. Create Wcf Library Project
    createwcfproject
  1. Visual Studio Publish
    publish

  2. Compare Publish Folder and Project Files
    release

As shown above "CustomService.svc" and web.config files are generated after publish. I'm using this method when I add a new service or update web.config files then copy and paste these files manually to the project. Only this way I could use WPPCopyWebApplication (web publishing pipeline) with CI pipeline and msbuild.

Thanks.

@dasetser Can you take a look?

I am also having this issue, can manually publish from visual studio but not from the CLI, how to integrate the publish into azure pipelines?

We don't currently support this functionality for the WCF Service Library projects. Your options for this would be to either use a WCF Service Application project (which includes these in the project and has more advanced publishing support), or create a custom MSBuild task to do this generation for you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stjepan picture stjepan  Â·  3Comments

JagathPrasad picture JagathPrasad  Â·  3Comments

sdmaclea picture sdmaclea  Â·  3Comments

mekomlusa picture mekomlusa  Â·  3Comments

skylerberg picture skylerberg  Â·  3Comments