Skip to content

Commit 4d91f75

Browse files
committed
Address some PR feedback
1 parent d5d1821 commit 4d91f75

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

nuget/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ auto obj = winrt::MyComponent::MyClass();
143143

144144
## Troubleshooting
145145

146-
**"could not find module 'winrt.X'"** — Ensure the `.ixx` was generated (check `$(GeneratedFilesDir)winrt\`) and that `CppWinRTBuildModule=true` is set. For cross-project references, verify the builder project has `CppWinRTConsumeModule=true` on its ProjectReference and that the builder's IntDir is accessible via `/ifcSearchDir`.
146+
**"could not find module 'winrt.X'"** — Ensure the `.ixx` was generated (check `$(GeneratedFilesDir)winrt\`) and that `CppWinRTBuildModule=true` is set. For cross-project references, verify the consuming project's `ProjectReference` to the builder has `CppWinRTConsumeModule=true`, and that the builder's `IntDir` is accessible via `/ifcSearchDir`.
147147

148148
**Linker errors for component constructors** — You may be importing a component's internal module instead of building your own reference projection. Remove explicit `/reference` flags for component IFCs and ensure your project has `CppWinRTBuildModule=true` so it builds reference projection modules from the component's `.winmd`.
149149

test/nuget/TestModuleComponent2/GreeterGroup.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "pch.h"
22

33
#define WINRT_IMPORT_MODULE
4+
import std;
45
import winrt.Windows.Foundation;
56
import winrt.TestModuleComponent1;
67

0 commit comments

Comments
 (0)