Skip to content

Commit

Permalink
Add note on using AnyCPU for Authoring projects (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
j0shuams authored Nov 22, 2022
1 parent 3dcca78 commit b245e57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ Consuming a C#/WinRT component from a C++/WinRT desktop application is supported
- **Package Reference**: In Visual Studio, right-click on the project in Solution Explorer and click **Manage NuGet packages** to search for and install the component package.

- **Project Reference**: In Visual Studio, right-click on the project in Solution Explorer and click **Add** -> **Reference**. Select the C#/WinRT component project under the **Projects** node.
- Note: The authoring project cannot target AnyCPU due to limitations between MSBuild and C++ Projects.

- Note: If your authored component is built with C#/WinRT version 1.3.3 or earlier, you also need a file reference to the `*.winmd` generated in the authored component's output directory. To add a file reference, right-click on the project in Solution Explorer and click **Add** -> **Reference**. Select the file from the **Browse** node.


#### Manifest Class Registration

Consuming a C#/WinRT component from a C++/WinRT desktop application requires adding manifest class registrations to the application.
Expand Down

0 comments on commit b245e57

Please sign in to comment.