{"id":12690,"date":"2020-04-21T11:12:12","date_gmt":"2020-04-21T19:12:12","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/vsnews\/?p=12690"},"modified":"2020-04-21T11:12:12","modified_gmt":"2020-04-21T19:12:12","slug":"aa81xk8","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/vsnews\/akams-aa81xk8\/","title":{"rendered":"Porting a C++\/CLI Project to .NET Core"},"content":{"rendered":"<p class=\"\">One of the new features of Visual Studio 2019 (beginning with version 16.4) and .NET Core 3.1 is the ability to build C++\/CLI projects targeting .NET Core. This can be done either directly with\u00a0<em>cl.exe<\/em>\u00a0and\u00a0<em>link.exe<\/em>\u00a0(using the new\u00a0<code class=\" prettyprinted\"><span class=\"pun\">\/<\/span><span class=\"pln\">clr<\/span><span class=\"pun\">:<\/span><span class=\"pln\">netcore<\/span><\/code>\u00a0option) or via MSBuild (using\u00a0<code class=\" prettyprinted\"><span class=\"tag\">&lt;CLRSupport&gt;<\/span><span class=\"pln\">NetCore<\/span><span class=\"tag\">&lt;\/CLRSupport&gt;<\/span><\/code>). In this post, I\u2019ll walk through the steps necessary to migrate a simple C++\/CLI interop project to .NET Core. More details can be found in\u00a0<a href=\"https:\/\/docs.microsoft.com\/dotnet\/core\/porting\/cpp-cli\" target=\"_blank\" rel=\"noopener noreferrer\">.NET Core documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the new features of Visual Studio 2019 (beginning with version 16.4) and .NET Core 3.1 is the ability to build C++\/CLI projects targeting .NET Core. This can be done either directly with\u00a0cl.exe\u00a0and\u00a0link.exe\u00a0(using the new\u00a0\/clr:netcore\u00a0option) or via MSBuild (using\u00a0&lt;CLRSupport&gt;NetCore&lt;\/CLRSupport&gt;). In this post, I\u2019ll walk through the steps necessary to migrate a simple C++\/CLI interop [&hellip;]<\/p>\n","protected":false},"author":18258,"featured_media":8227,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-12690","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allskus"],"acf":[],"blog_post_summary":"<p>One of the new features of Visual Studio 2019 (beginning with version 16.4) and .NET Core 3.1 is the ability to build C++\/CLI projects targeting .NET Core. This can be done either directly with\u00a0cl.exe\u00a0and\u00a0link.exe\u00a0(using the new\u00a0\/clr:netcore\u00a0option) or via MSBuild (using\u00a0&lt;CLRSupport&gt;NetCore&lt;\/CLRSupport&gt;). In this post, I\u2019ll walk through the steps necessary to migrate a simple C++\/CLI interop [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts\/12690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/users\/18258"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/comments?post=12690"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts\/12690\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/media\/8227"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/media?parent=12690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/categories?post=12690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/tags?post=12690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}