Skip to content

Commit

Permalink
fix: remove Runtime suffix of MapperlyAbstractionsScope msbuild option (
Browse files Browse the repository at this point in the history
#1049)

The value runtime already indicates the runtime meaning
  • Loading branch information
latonz committed Jan 8, 2024
1 parent 7a5cbe4 commit 54b0eea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/docs/getting-started/installation.mdx
Expand Up @@ -62,11 +62,11 @@ Checkout the latest stable version [here](https://mapperly.riok.app).
Mapperly removes the attribute references at compile time by default (they have the `ConditionalAttribute`).
If you want
to preserve the attribute references at runtime
you can set the MSBuild variable `MapperlyAbstractionsScopeRuntime` to `runtime`.
you can set the MSBuild variable `MapperlyAbstractionsScope` to `runtime`.

```xml
<PropertyGroup>
<MapperlyAbstractionsScopeRuntime>runtime</MapperlyAbstractionsScopeRuntime>
<MapperlyAbstractionsScope>runtime</MapperlyAbstractionsScope>
</PropertyGroup>
```

Expand Down
2 changes: 1 addition & 1 deletion src/Riok.Mapperly/Riok.Mapperly.targets
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<DefineConstants Condition="'$(MapperlyAbstractionsScopeRuntime)' == 'runtime'">$(DefineConstants);MAPPERLY_ABSTRACTIONS_SCOPE_RUNTIME</DefineConstants>
<DefineConstants Condition="'$(MapperlyAbstractionsScope)' == 'runtime'">$(DefineConstants);MAPPERLY_ABSTRACTIONS_SCOPE_RUNTIME</DefineConstants>
</PropertyGroup>
</Project>

0 comments on commit 54b0eea

Please sign in to comment.