{"id":40747,"date":"2022-07-05T08:17:37","date_gmt":"2022-07-05T15:17:37","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=40747"},"modified":"2024-12-13T15:21:08","modified_gmt":"2024-12-13T23:21:08","slug":"corewcf-1-1-0-and-project-templates","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/corewcf-1-1-0-and-project-templates\/","title":{"rendered":"CoreWCF 1.1.0 and project templates"},"content":{"rendered":"<p>The CoreWCF project has a new release, 1.1, which is an update to the <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/corewcf-v1-released\/\">1.0 that was released in April<\/a>. I want to take the opportunity to provide a quick update on the CoreWCF project, which is a port of WCF server functionality to .NET Core. CoreWCF provides a compatible implementation of SOAP, NetTCP, and WSDL. Usage in code is similar to WCF, but updated to use ASP.NET Core as the service host, and to work with .NET Core.<\/p>\n<h2>CoreWCF 1.1 Release<\/h2>\n<p>CoreWCF 1.1 is an incremental release for the project that provides some smaller features, mostly implemented by community members. As an incremental release, customers are recommended to update to it in their projects as there are no breaking changes to APIs.<\/p>\n<p>The release contains the following new features:<\/p>\n<ul>\n<li>Impersonation support with Transport Security over HTTP, implemented by @jonlouie<\/li>\n<li>New APIs to modify generated Swagger file with WebHttpBinding, implemented by @JonathanHopeDMRC<\/li>\n<li>The X509CertificateClaimSet class has been made public, implemented by @petarpetrovt<\/li>\n<\/ul>\n<p>Further details on these changes can be found in the <a href=\"https:\/\/github.com\/CoreWCF\/CoreWCF\/releases\/tag\/v1.1.0\">release notes<\/a>.<\/p>\n<p><a href=\"https:\/\/github.com\/CoreWCF\/CoreWCF\/blob\/main\/Documentation\/Microsoft-Support.md\">Microsoft support is available for CoreWCF<\/a>, and is based on supporting the latest version. With this incremental release, support will continue to be available for v1.0 for 6 months (until 30th December 2022).<\/p>\n<h2>Project Templates<\/h2>\n<p>The coolest feature in this release are the project templates that have been implemented by @g7ed6e. The templates include the essentials for creating a service using the <code>BasicHttpBinding<\/code>. The templates are installed using:<\/p>\n<pre><code class=\"language-cmd\">dotnet new --install CoreWCF.Templates<\/code><\/pre>\n<p>Once installed, new CoreWCF projects can be created using <code>dotnet new corewcf<\/code> or using the Visual Studio new project dialog (which relies on the command above for installation).\n<img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2022\/07\/NewProjectDialog1.png\" alt=\"New project dialog\" \/><\/p>\n<p>The project templates include the following additional options:<\/p>\n<table>\n<thead>\n<tr>\n<th>Option<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>-f<\/code> or <code>--framework<\/code><\/td>\n<td>The target framework for the project, the default is net6.0<\/td>\n<\/tr>\n<tr>\n<td><code>--no-https<\/code><\/td>\n<td>Whether to turn off HTTPS. The default is false so projects include https support<\/td>\n<\/tr>\n<tr>\n<td><code>--use-program-main<\/code><\/td>\n<td>Whether to generate an explicit Program class and Main method instead of top-level statements for .NET 6. The default is to use the minimal API syntax<\/td>\n<\/tr>\n<tr>\n<td><code>--no-wsdl<\/code><\/td>\n<td>Whether to turn off WSDL metadata feature. The default is false so WSDL generation is included<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>They can be specified on the <code>dotnet new<\/code> command line, and also are shown as UI in Visual Studio:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2022\/07\/NewProjectDialog2.png\" alt=\"Project options\" \/><\/p>\n<p>The project templates make it very easy to create new CoreWCF projects. It may seem strange to have project templates given that CoreWCF is intended to assist with the modernization of existing WCF services, but a common migration strategy is to create a new project and either copy from it to the old project or vice-versa.<\/p>\n<h2>Samples<\/h2>\n<p>The samples for CoreWCF have moved to their own GitHub repo <a href=\"https:\/\/github.com\/CoreWCF\/samples\">https:\/\/github.com\/CoreWCF\/samples<\/a>. This makes them easier to use as you can clone the repo or download as a zip and just get the samples. They now reference the nuget packages and so are usable without needing to build CoreWCF itself. We have worked on reducing the complexity of the samples so that they are easier to understand, and use as the basis for your projects.<\/p>\n<h2>Survey<\/h2>\n<p>The goal of the CoreWCF project is to make it easier for developers to modernize their WCF applications to .NET Core. We want to drive the project based on the needs of developers modernizing their apps. To help us understand what those needs are we have a short survey for customers using CoreWCf and WCF.<\/p>\n<p><a href=\"https:\/\/www.surveymonkey.com\/r\/FW9VM6P\">https:\/\/www.surveymonkey.com\/r\/FW9VM6P<\/a><\/p>\n<h2>Summary<\/h2>\n<p>We want to thank the contributors for their PRs that made this release possible. It&#8217;s really great to see the community involvement in the project, and we welcome feedback, issues, questions and contributions for the project at <a href=\"https:\/\/github.com\/CoreWCF\/CoreWCF\">https:\/\/github.com\/CoreWCF\/CoreWCF<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CoreWCF 1.1 has been released, and now we have a project templates package<\/p>\n","protected":false},"author":8635,"featured_media":40748,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685,7257],"tags":[],"class_list":["post-40747","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-wcf"],"acf":[],"blog_post_summary":"<p>CoreWCF 1.1 has been released, and now we have a project templates package<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/40747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/8635"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=40747"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/40747\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/40748"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=40747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=40747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=40747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}