Skip to content

Commit 2d6a1e9

Browse files
authored
docs: improve installation docs (riok#838)
1 parent 92a697f commit 2d6a1e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/getting-started/installation.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ Checkout the latest stable version [here](https://mapperly.riok.app).
4747

4848
</Conditional>
4949

50-
:::info
50+
### Removing runtime dependency
51+
5152
It is possible to remove Mapperly runtime references completely by setting `PrivateAssets="all"` and `ExcludeAssets="runtime"` on the `PackageReference`.
5253
`PrivateAssets="all"` ensures that projects referencing this project do not also get a reference to `Riok.Mapperly`.
5354
`ExcludeAssets="runtime"` ensures that the Mapperly .dll files are not copied to the build output.
@@ -59,4 +60,3 @@ This is, for example, the case if `typeof(MyMapper).GetCustomAttributes()` is ca
5960
In Blazor Wasm applications `<BlazorWebAssemblyLazyLoad Include="Riok.Mapperly.Abstractions.dll" />` can be added to lazily load `Riok.Mapperly.Abstractions`
6061
and reduce the download size.
6162
`Riok.Mapperly.Abstractions` will probably never be needed anyway.
62-
:::

0 commit comments

Comments
 (0)