Skip to content

Commit

Permalink
add property for authoring project references (microsoft#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelazhangmsft authored Mar 9, 2022
1 parent b8cfff0 commit 4afe8c9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Components can be consumed by application projects that reference the Windows Ap

#### Support Matrix

The following table outlines the Windows App SDK application types that are supported when consuming C#/WinRT authored components implementing WinUI types:
The following tables outline the Windows App SDK application types that are supported when consuming C#/WinRT authored components implementing WinUI types:

- ✅ Scenario works
- 🟨 Scenario partially works (i.e. with specific limitations)
Expand All @@ -190,6 +190,17 @@ The following table outlines the Windows App SDK application types that are supp
|C# Packaged with WAP |Package Reference| 🟨 | [#1118](https://github.com/microsoft/CsWinRT/issues/1118) |
|C# Unpackaged|Package Reference|🟥 | [#1116](https://github.com/microsoft/CsWinRT/issues/1116) |

#### Authoring a C# component with Windows App SDK

In addition to the instructions outlined above in [Authoring a C#/WinRT Component](#authoring-a-cwinrt-component), you will also need to add the following property to your C# library project file:

```xml
<PropertyGroup>
<!-- Needed for enabling project references to C# libraries from C++ applications -->
<WindowsAppContainer>true</WindowsAppContainer>
<PropertyGroup>
```

#### Consumption of WinUI controls from C++ apps

If a C++ app is consuming a component that provides a custom user control, there are a few extra configuration steps:
Expand Down

0 comments on commit 4afe8c9

Please sign in to comment.