Skip to content

Commit 719063a

Browse files
Fix second round of PR review feedback
- Restore missing H1 headings in create-winrt-component-winui-cswinrt.md and create-windows-runtime-component-cswinrt.md (were lost during front-matter repair) - Update .NET 6.0 SDK prereqs to .NET 8.0 SDK (LTS) or later, and fix links to point to generic download page instead of version-specific .NET 6 page, in all three walkthrough files Co-authored-by: Copilot <[email protected]>
1 parent 12cf8b5 commit 719063a

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

hub/apps/develop/platform/csharp-winrt/create-windows-runtime-component-cswinrt.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ ms.topic: article
66
ms.localizationpriority: medium
77
---
88

9+
# Walkthrough&mdash;Create a C#/WinRT component, and consume it from C++/WinRT
10+
911
C#/WinRT enables developers using .NET to author their own Windows Runtime components in C# using a class library project. Authored components can be consumed in native desktop applications as a package reference or as a project reference with a few modifications.
1012

1113
This walkthrough demonstrates how to create a simple Windows Runtime component using C#/WinRT, distribute the component as a NuGet package, and consume the component from a C++/WinRT console application. For the full sample that provides the code for this article, see the [C#/WinRT authoring sample](https://github.com/microsoft/CsWinRT/tree/master/src/Samples/AuthoringDemo). For more details about authoring, see [Authoring components](https://github.com/microsoft/CsWinRT/blob/master/docs/authoring.md).
@@ -17,7 +19,7 @@ For a walkthrough on authoring WinUI 3 controls with C#/WinRT specifically for u
1719
This walkthrough requires the following tools and components:
1820

1921
- [Visual Studio 2022 or later](/visualstudio/releases/2022/release-notes)
20-
- [.NET 6.0 SDK](https://dotnet.microsoft.com/download/dotnet) or later
22+
- [.NET 8.0 SDK (LTS)](https://dotnet.microsoft.com/download) or later
2123
- [C++/WinRT VSIX](https://marketplace.visualstudio.com/items?itemName=CppWinRTTeam.cppwinrt101804264) for C++/WinRT project templates
2224

2325
## Create a simple Windows Runtime Component using C#/WinRT

hub/apps/develop/platform/csharp-winrt/create-winrt-component-winui-cswinrt.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ ms.topic: article
66
ms.localizationpriority: medium
77
---
88

9+
# Walkthrough&mdash;Create a C# component with WinUI 3 controls, and consume it from a C++/WinRT app that uses the Windows App SDK
10+
911
C#/WinRT provides support for authoring Windows Runtime components, including WinUI custom types and custom controls. These components can be consumed from either C# or C++/WinRT applications that use the Windows App SDK. We recommend using C#/WinRT v1.6.4 or later to author runtime components with NuGet packaging support.
1012

1113
For more details about the supported scenarios, refer to [Authoring C#/WinRT components](https://github.com/microsoft/CsWinRT/blob/master/docs/authoring.md) in the C#/WinRT GitHub repo.
@@ -17,7 +19,7 @@ This walkthrough demonstrates how to author a C# component with a custom WinUI c
1719
This walkthrough requires the following tools and components:
1820

1921
- [Visual Studio 2022 or later](/visualstudio/releases/2022/release-notes)
20-
- [.NET 6.0 SDK](https://dotnet.microsoft.com/download/dotnet/6.0) or later
22+
- [.NET 8.0 SDK (LTS)](https://dotnet.microsoft.com/download) or later
2123
- [Windows App SDK VSIX](../../../windows-app-sdk/downloads.md) (1.1 from the stable channel)
2224

2325
## Author your C#/WinRT component using the Windows App SDK

hub/apps/develop/platform/csharp-winrt/net-projection-from-cppwinrt-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In .NET 6 and later, consumption of Windows metadata (WinMD) files is no longer
2222
This walkthrough and the corresponding sample require the following tools and components:
2323

2424
* [Visual Studio 2022 or later](https://visualstudio.microsoft.com/downloads/) with the Universal Windows Platform development workload installed. In **Installation Details** > **Universal Windows Platform development**, check the **C++ (v14x) Universal Windows Platform tools** option.
25-
* [.NET 6.0 SDK](https://dotnet.microsoft.com/download/) or later.
25+
* [.NET 8.0 SDK (LTS)](https://dotnet.microsoft.com/download) or later.
2626

2727
We'll be using Visual Studio 2022 or later and .NET 8 in this walkthrough.
2828

0 commit comments

Comments
 (0)