You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,17 +96,20 @@ Install the **TenJames.CompMap** package via NuGet:
96
96
```shell
97
97
dotnet add package TenJames.CompMap
98
98
```
99
-
Ensure its correclty referenced in your project file:
99
+
100
+
The package will automatically be configured as a source generator. If you need to reference it manually in your project file:
100
101
101
102
```xml
102
-
<ProjectReference
103
-
Include="TenJames.CompMap"
104
-
Version="0.0.2"
105
-
ReferenceOutputAssembly="false"
106
-
OutputItemType="Analyzer"
103
+
<PackageReference
104
+
Include="TenJames.CompMap"
105
+
Version="latest_version"
106
+
OutputItemType="Analyzer"
107
+
ReferenceOutputAssembly="false"
107
108
/>
108
109
```
109
110
111
+
Note: The `OutputItemType="Analyzer"` and `ReferenceOutputAssembly="false"` attributes are typically not required when using `dotnet add package`, as the package is already configured correctly.
112
+
110
113
### Component registration
111
114
112
115
If you are using dependency injection, register the mapping services in your DI container:
0 commit comments